Question PC restarted for no reason right before Power Outage

AlwaysReaper

Prominent
Oct 14, 2019
62
0
530
So my PC randomly restarted twice before a power outage, its weird all the lights in my room were on but its like the PC lost power way before everything like 30 sec before the power outage. Is this a faulty PSU or is it some kind of sensitive sensor that shuts itself at first anomaly?