This is how you give CPR to your dead laptop.
Disable 'It’s almost time to Restart' alert in Windows 11 using Active Hours, Auto-restart settings, or Group Policy/Registry ...