Mustache script result size limit exceeded

Hi Team,

After upgrading the elastic version 7.17.11 to 7.17.27 we are getting the below error while searching in Elasticsearch.
our request body size is less than 1 MB, even though we are getting the same exception.
can you please help to resolve this issue.
It was working fine in the version 7.17.11

{
    "error": {
        "root_cause": [
            {
                "type": "parse_exception",
                "reason": "Mustache script result size limit exceeded"
            }
        ],
        "type": "parse_exception",
        "reason": "Mustache script result size limit exceeded",
        "caused_by": {
            "type": "size_limit_exceeded_exception",
            "reason": "String [{ \"_source\" : [\"id\",...] has exceeded the size limit [1073741824]"
        }
    },
    "status": 400
}

?