What are your system specs?
Also, you can download temperature monitoring tools for your GPU and your CPU. Your GPU could be overheating, shutting your computer off, or it could be your CPU. Run the temperature monitoring and watch them very closely, writing down the temperatures that the computer shuts off at. Make sure you log the temps in Celsius too, not Fahrenheit. It'll save us (me) some math to convert XD.