The content length is bigger than the maximum allowed string

I'm not sure if this error related to Kibana or Elasticsearch .
When Try to search in "discovery" I'm getting
"The content length (771413825) is bigger than the maximum allowed string (536870888)"

How can I fix it ?

Could you post a har file that captures the error and a couple of requests before it?

What version of the Elastic stack are you using?

Thanks,
Matt