So my newly built PC started randomly shutting down almost twice a day and from what I observed, it does it when the PC is either idle or underloaded but seems fine when gaming and doing heavy stuffs. Temps are also fine across the board.
Everything shutdowns except for the usb ports.
EDIT: And it doesn't turn back on unless I unplug and plug in the pc again.
Ryzen 5 2600 Stock
GTX 1650 Super OC Edition
2x4GB HyperX Fury 2400MHz
CoolerMaster MWE 450W 230V
Prolink PRO701SFC line interactive UPS with AVR