Sometimes when you add a new device to your computer, you computer will have a driver conflict and just reboot or shut off. If nothing was introduced to your computer here lateley then it may want to run Windows updates.
Another thing that may cause thing like this to occur is if your CPU fan is not functioning properly. The computer will automatically shut off because of overheating. If you can, unplug everything from your computer, open it and with a can of air, blow it clean and look at all the cooling fans.
If you need further help, reach me via phone at
https://www.6ya.com/expert/hugo_f827544e52871d36
×