Not here to single out the OP but people lately starting to blame AMD software for all kind of issues. I had this issue way before the new software came out and it was on a Asus Radeon RX 580. It wasn't every time. But it would happen maybe once a week. Disabled it and no more issues. Crazy thing is I gave this same card to my nephew and he has no issues out of it without any adjustments. If AMD could do one thing its probably start better binning of the GPU dies so AIB partners can clearly sell a OC'ed card properly and not just increase voltage to get to a higher clock. Same process as the 3rd Gen Ryzen die.
Here new PC with a fresh install of Win 10 Pro and fresh AMD driver 2020 edition and with a RX 5700 XT still had YouTube problems and had to disable hardware acceleration. AMD/ATI has never cared about this issue and it's hard to pin down who to blame AMD or Google.
Maybe AMD cannot recreate the issue like i can't either. Second ss is my system with RX 570 on a Win10 that came from a Phenom II system. Just plugged the drive into the Ryzen system. Discord works. YT has no issue either.