I'm not certain as to which component is causing this issue although I decided to un-plug and re-plug the power cable which is connected to my PSU. Furthermore, I changed the outlet in to which the power cable connected. I use hardware component temperature monitoring software and have verified that the issue isn't being caused by my GPU no CPU. I used Open Hardware Monitor and noticed that the values corresponding to the temperatures of components of my system were alarmingly high at 125 C. I have an ASUS motherboard and later realized that my computer reaches this temperature, according to the monitoring software, regardless of whether I'm playing MoW:AS2 or not. Additionally, people have said that the Open Hardware Monitoring application which I've been using doesn't report the said values correctly. I touched the PSU and realized that it didn't feel hot in the slightest. This issue occurred in the past when I played Total War but then stopped for a while. I think I configured a few settings to ensure that my computer wouldn't automatically restart although I don't remember what I did unfortunately.