Zend certified PHP/Magento developer

PC has problems suspending, hibernating and turning off display. Need help to figure out why

Some system info that might be useful: Windows 10, SSD, MB a320m-s2h from Gigabyte.

I believe there’s something wrong when my PC goes “idle” or something. Here is what I notice have been happening (for more than a year):

1) When the display turns off (ie. when it reaches the time set in the power edit plan):

a) If I try to use it again some seconds later, the PC restarts.

b) If I try to use it a bit longer later, the PC freezes.

2) When I enter suspend / hybrid sleep / hibernate:

a) If I try to use it again some seconds later, it restores the section normally, as it should.

b) If i try to use it a bit longer later, when it tries to restore the section, the PC restarts completely.

I have tried turning off fast startup, but had no effect on the problems listed.

I have no clue why that’s happening, and it has been annoying as fuck, so I would love to figure out what is happening so I could try to fix it, if possible.