it shuts off completly.
There is no set time for this kind of issue. Like I said there is a possibility your motherboard can also be causing this issue. There are two possibilities motherboard or cooling system meaning heat sync and fan.
I don't believe you :
It shuts off too quickly for it to be a cooling issue.
You know what have a great day. and good luck.