Elastic search 8.5.3 Aggregations query erroring

I think you are hitting a similar issue described here and probably the workaround helps you:

Would it be possible for you to open an issue in the Elasticsearch repository providing as much information so we can reproduce it?

Thanks!