Hello and welcome to Techspot.
When you say your system shuts off, do you mean it reboots, or totally shuts down?
If your system is rebooting by itself, then do the following. Right click my computer, and select properties, then the advanced tab. Under startup and recovery, click on settings, and untick the box that says automatically restart. Click ok, apply, ok.
Now restart your system. Now instaed of your system rebooting itself when there`s a problem, you should receive an error message telling you what caused the problem.
Pay particular attention to any drivers identified in the stop error.
If you don`t understand the stop error, then please post the message you get including all the numbers.
It could be something as simple as a faulty driver, or something more serious, like fauly ram, psu etc.
Regards Howard :wave: :wave: