Ok so I've built s pc like 2 weeks ago an there is this problem when I try to run like a demanding game the sound comes out cracking and then the PC shuts down abruptly. I first thought it was a ram issue as I had run the windows memory diagnostics and it found a hardware problem. I got a new memory and ran the test again. There were no problems detected. So I started assassin's Creed Odyssey and ran the benchmark. The cracking sound started again and the PC shut down again. So now I don't know what to do. I'm coming here as a last resource before going to a technician because I couldn't find the same problem on any site that I looked for. One more thing I also tried to run the PC without one stick of memory and for my surprise everything went well and maybe there is a problem with the motherboard that one slot is kind of broken but not completely because it detects the memory. Sorry for the long text but I'm very worried about this and can't find a solution.
My specs: Ryzen 7 3700x, RX 5700xt, 16GB crucial ballistic3200mhz,MSI X570-a Pro, 600W EVGA power supply
Windows 10 pro 64BIT
Bios version: H.10