Please refer to the thread
My AirPods Pro 2nd gen has issues with fi… - Apple Community
1. Turn off the spatial sound itself. Relevant to spatial audio function regardless of head tracking.
2. This is a bug that does not occur in Youtube Music.
3. Hardware itself is no problem. I checked it directly with Apple Genius.
3.1. When you want to know if there is a hardware problem, check...
a. Put it in ambient sound mode.
b. Put the earbuds in your ears and cover them slightly with the pinna.
c. Never apply pressure to cover. If you hear an annoying beep at that time, the hardware is defective. (This is the same way to screen for defects in AirPods Pro 1st generation manufactured before October 2020)
I found the flaw described in the 2nd generation of my AirPods Pro and got it replaced at Best Buy.