Xiaomi mi 9t pro (raphael) here and I have the same problem with YouTube vanced. Video plays 5 seconds and pauses 3 seconds, plays 5 seconds,.. Very annoying.
I disabled miui battery optimization and autostart is enabled. No use
Edit: issue also on Netflix, in site videos,..!
Please fix this!!