PC keeps crashing whenever I play Tower Unite

I don’t know why this is happening. When I played the game a couple of days ago; it was working fine, but now for some reason, a few minutes after I start the game, the PC shuts itself down as if it is overheating for some reason. I don’t know why it keeps happening.

My PC specs are:

CPU: AMD Ryzen 5 3600x 6-Core Processor GHz

GPU: AMD Radeon RX 570 Series