Question Computer turns off itself when idling longer than 30 minutes

Jun 29, 2020
Hello everyone.

Ok so the problem is that when i leave my computer on during the night because i'm downloading some things when i'm off from the computer and i'm sleeping, the computer just randomly shuts itself off after some 30 mins or generally when its just idling downloading something or doing nothing, its just weird because if i'm browsing or watching streams or gaming for hours, the computer is just fine and i've tried to go to the power management options and disable hibernation but its not that, its like the computer gets power outage from somewhere itself (although i still have electricity) and it closes, i can understand that from my LED's, if an power outage happens the LED's on motherboard are going back to default colour (orange). This thing just started to happen out of nowhere and i haven't still found any solution and the temps are also fine.

Mobo: Aorus B450 Elite
CPU: Ryzen 7 2700
PSU: Corsair CX850M
GPU: RX 460
RAM: 16GB Corsair Vengeance 3000MHz

Please help :(