Welcome to Android Central! Does this happen in Safe Mode as well? https://support.t-mobile.com/docs/DOC-34283. Does the phone reboot randomly when using any other app, or is it always YouTube?
Have you also tried going to the App Manager, selecting YouTube, and clearing the cache/data?