I don't know if ES supports this, but rejecting queries that are crushing the server is the best idea ever. (aka backpressure) Opensearch has it, old versions of ES didn't and it caused me so much pain.
https://opensearch.org/docs/latest/opensearch/search-backpressure/