This error usually happens when Elasticsearch cannot parse a specific field in the message attachment. It would be best to double-check that your data format is correct for your authentication parameters.
This related forum post might be helpful too.