I started off by checking the temperatures of the CPU and GPU because in most cases a random shutdown is due to overheating. My temperatures were high but not crazy high. I replaced the thermal heat paste on my CPU, just to make sure but I couldn’t notice a difference at all.
I checked on the overclocking in my bios system and changed the overclocking to automatic. It was on a constant power of 2,4Ghz before and now that I changed it to auto, it regulates itself when the CPU becomes too hot. I tried changing the overclocking to a minimum as well (in my case I tried 1,9Ghz) but I still had the random shutdowns. Ever since then, I thought that it couldn’t really be the CPU, so I moved on.