When sending logs in batch or as a single, the PutEvent from Cloudwatch has a limit on the amount of data that you can send. Make sure to split the logs into chunks to as not to fail with this error