This has just started happening recently that whenever i play something on the box on YouTube it glitches and reboots and gets stuck on the boot animation...either it will get u into a bootloader type menu and ask u to reboot or factory reset saying that the data is corrupted or then u have to turn off the power to reset it...anyone else facing this ?
You could try smart YouTube app see if that works.
https://smartyoutubetv.github.io/