534 Message header size, or recipient list, exceeds policy limit.
sendmail: Unable to submit message.
You aren't generating a well formed message in that way.
But investigating what you say, I agree. *ANY* line with a long size
(header or body) causes this error message. It's OK to limit the length
of the headers, but why courier imposes a limit in the body?