@Evesy @lunatic thank you for the research. I opened https://github.com/elastic/elasticsearch/pull/30244 with a proposed fix. It needs to be reviewed but you can follow progress on github.

---