The other day I used one of those ultrasonic eyeglasses cleaning machines while I had my AirPods Pro in and they went crazy with static as long as I had the machine on.
That could also be because of the noise cancelling, where the microphones are "hearing" the ultrasonic frequencies and the headphones are trying to cancel them out.