550 x-dg-ref header is too long: Rich Text attachment made the message header too large
Outlook can produce this response when a message uses Rich Text and contains an attachment. The bounce can show this text after a 550 5.0.350 response.
What to check
- Compose the message in HTML instead of Rich Text and send it again.
- If the bounce persists, check whether an attached message itself contains another attachment.
Official reference
Microsoft Learn: Troubleshoot 550 x-dg-ref header is too long in Exchange Online