You can configure the maximum size of messages in Simple Message Queue (formerly MNS) queues by setting the MaximumMessageSize property.
Call the SetQueueAttributes method to set the MaximumMessageSize property, which defines the maximum number of bytes that a message in the queue can contain. Valid values: 1024 bytes (1 KB) to 65536 bytes (64 KB). If a message exceeds 64 KB, store the data in OSS and let Simple Message Queue (formerly MNS) store only the endpoint. For more information, see Oversized message transfer.