This is a brand new (few weeks old) APU that's working wit the following hardware:
Motherboard: B550M-A Pro from MSI,
PSU: CoolerMaster MWE 450 Bronze v2,
Processor: Ryzen 7 5700G,
RAM: Crucial Basics 16GB (x2) DDR4-3200 UDI,
Cooler: Stock
I'm running it on Linux, and since the beginning the only BIOS/UEFI changes were disabling the Secure Boot, without which Linux won't boot. Everything had been working fine, except I noticed random shutdowns sometimes. I thought it was a loose power cable (old), I replaced it and went with it. Most of the time, nothing goes wrong, the system remains running for a day or longer on usual work that's not CPU-intensive. I had also been told that I should've updated the BIOS, I noticed there's a beta update and did it, but that didn't help with anything.
The moment I noticed more frequent crashes was when I started doing my development work, where I was compiling a large program and the processors would gradually hit 99-100%, it'll stay there for sometime and the temperature goes upto 80-81ºC and here if I leave it it'll run for some minutes then crash, or even if I do interrupt and kill the process with Ctrl + C, the system also crashes.
This certainly isn't expected behavior, I don't plan to run at 100% longer, but I need stuff to compile. I've searched, and I've found undervolting might help, some say to get a dedicated cooler and others say its a faulty CPU.
I haven't tried undervolting or messing around with PBO or anything, because I don't understand it and wouldn't want to void my warranty, and I've ordered a Hyper 212 (its cheaper here) already to fix the heat issue.
I'd really like some advice on fixing and optimizing this build for development on large applications.