Size_limit_exceeded_exception

Hi,

We have recently upgraded from Elasticsearch 7.17.11 to 7.17.25. Post the upgrade, we started seeing the below exception while querying through Search (Mustache) templates.

ElasticsearchStatusException[Elasticsearch exception [type=parse_exception, reason=Mustache script result size limit exceeded]]; nested: ElasticsearchException[Elasticsearch exception [type=size_limit_exceeded_exception, reason=String [ { "_source":[" ] has exceeded the size limit [1048576]]]

This error is occuring only when a larger text is passed to the search template. Is there any configuration that can be applied to mitigate this error?