Since receiving my S22 Ultra, YouTube videos played through the phone's speakers or via Galaxy Buds pro, had an annoying, very quick but noticeable audio glitch regularly occuring. I've seen a lot of similar report, some even worse.
But, since the OneUI 5 beta, I've not had a single glitch, and I watch 2/3 hours of YouTube video every day.
I remember back then the responses I was getting were all pointing fingers at Google, but maybe it wasn't.
Anyway, tl;dr YouTube is not audio glitching anymore since the beta!