Hi Elijah. I'm Greg, here to help you with this.
Try these fixes for WIndows closing apps during sleep, fixes same for Windows 10 and 11:
https://softwaretested.com/windows/how-to-stop-...
https://www.thewindowsclub.com/windows-10-close... (Avoid ad links which intrude into editorial copy, especially avoid Restoro, PC Repair Tool and Reimage ads)
https://tipsmake.com/fix-windows-10-computer-au...
https://www.youtube.com/watch?v=TH9TEaH6jiA
Here is everything that works best for fixing sleep in Windows 11:
- Troubleshoot the display driver which controls everything about sleep:
https://answers.microsoft.com/en-us/windows/for...
- Troubleshoot Sleep to find and fix problems:
https://allthings.how/how-to-fix-sleep-timer-no...
https://www.reddit.com/r/WindowsHelp/comments/q...
https://10scopes.com/fix-pc-wont-go-to-sleep-wi...
https://wethegeek.com/windows-pc-wont-go-to-sle...
https://www.youtube.com/watch?v=7rty9gSvXcM
What I do is set Power Plan timeouts to 1 minute for Display and Sleep, then 2 minutes for Hibernate. After each step in the tutorials above, restart PC and sit back to observe if the timeouts work. If so set them back to Plan defaults:
https://translate.google.com/translate?sl=auto&...
Feel free to ask back any questions. If you'll report back results for each step, including in each link, it can help determine what else we need to try. I will stick with you until it is fixed.
______________________________________________
Standard Disclaimer: There are links to non-Microsoft websites. The pages appear to be providing accurate, safe information. Watch out for ads on the sites that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the sites before you decide to download and install it.