Can you please post the exact API command you are using to do this? And did you change the blockchain parameters from the default values?
If you are using the regular publish API and the default blockchain parameters, the limit is in the megabytes, so I'm not sure what the cause is.