It's not that old and the problem is exactly the same. Do you have this over clocked? Enter your BIOS program and set to the safe Default settings and see if the problem continues.
For the past month or so now my computer has been having an issue with shutting off while playing some games. First off I have to say that I have an old post talking about my computer shutting down.(https://www.cnet.com/forums/discussions/computer-shutting-off-not-overheating/?ts=15175248013952)
This is not even remotely the same as that. The only time my computer will do said shutting down is when I'm playing League of Legends or Subnautica. I have lowered settings on both games to almost all the way, except for some detail settings which i still keep on medium to low. I understand how some games are more demanding than others but league of legends is not that demanding of a game. Just earlier I was playing Skyrim for a few hours just to test and see if my computer would handle it. To my surprise I had no issue with it what so ever. Currently my computer is hooked up outside the case (My case was bent and causing an issue), it does get hot but not to the point it should shut down. The only things that I think could be the issue would be the PSU GPU or CPU. Which I know sounds like a lot but i dont even think it is a complete hardware breaking issue. I believe it has to be with software or something else that could be causing my computer to selectively shutdown.
My specs are Ta970 5.2 mobo AMD FX-6300 nvidia gtx 560 ti
CorsairVengeance Blue 4GBx2 samsung ssd 840 (THE OS IS ON THIS)
Hitachi HDT7250 Rosewill RG630-S12
My parts are old and need to be updated and that is definitely on my list. Within the next month i will be replacing the psu and gpu. If anyone has any opinion on what they think I should do please let me know. If any tech expert tells me something i already know please don't bother. I tried covering every corner of my issue. Hopefully someone has an idea. Thanks.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic