If your computer is turning off then I would look at:
* your plug in outlet
* your electric cord
* the air flow into your computer
* how hot your computer is running
They way you are describing it - it doesn't sound software related to me. With
all the components that you have replaced surely a hot spot would have been
spotted though. Of course changing out all those parts, maybe something is not
seated properly.