Bro, you might want to check that outlet. You could be having a shortage going on.
If it's not the outlet, it could be your board, your CPU overheating, your GPU overheating. Keep a monitor on EVERYTHING before it shutsdown.
You can also check windows event logs to see if it was a software error or power error.