Encountered same issue on Xbox One S. Minecraft version 1.17.10
I'm out of town for a week; when I get back I'll probably do some more tweaking.
Apparently I was wrong about what a high-pass filter does. What I wanted was a low-pass filter.
I re-did it, this time being aggressive on some samples and less so on others. The volume is close to the same, but the high frequency sounds are mostly gone. See how this works for you.
https://dl.dropbox.com/u/14806794/batsounds2.zip
If it does work, Mojang, you have my permission to use these modified files.
It might be better to, instead of dropping the pitch, mess with an equalizer to drastically reduce remove the frequencies higher than 10KHz. It'll make the bats sound different, but it should prevent headaches in those people who can still hear the 'mosquito' audio file.
EDIT
Here's a link to a zip file with modified bat noises that are the same pitch, but have a highpass filter at a bit below 10KHz. Those of you who have headache problems, can you listen to this and let me know if it still has the headache-inducing qualities of the originals? I'm getting a little too old. [BOTCHED THIS ONE, SEE COMMENTS BELOW]
Try on an SMP server instead of SSP.
Title should be changed to something like "game breaking bug". If this happens you literally cannot leave the ring shop. If someone has a work around please post. Otherwise the only other option is to start over from scratch.