Sounds very much like a PSU-problem, is the PSU questionable quality? Is it old? Does it provide enough power for your setup?
They eventually all go bad, the cheapo ones fast especially. Nothing u can do but get a new one.
Could also be the CPU overheating and the computer shutting itself down to protect it from damage. Do you have overclocks and a stock fan?








