Why windows exit from sleep or hibernate mode? I’ve spent a lot of time trying to find answer on this question in internet. And finally found solution. Run from cmd with Administrator privileges
C:\Windows\system32>powercfg -sleepstudy
Sleep Study report saved to file path C:\Windows\system32\sleepstudy-report.html.
and see the report. This’ll show the reason why system enters/exits sleep/hibernate mode.