Having this exact same issue. iPhone 12 Pro Max, M1 MacBook Pro on the latest and greatest updates, and 3rd generation AirPod Pros. If I plug in one AirPod, YouTube works fine. As soon as I plug in the second AirPod, I can see the sound icon at the top switching between the Mac's built-in speakers and the AirPods consistently which ends up pausing YouTube. I really hope this gets resolved as it's becoming quite troublesome.