Surface Pro 8 Windows 11 Home 22621.1105 - exactly the same problem. A clean install doesn't help. The problem appeared about 2 months ago.
A temporary solution is to restart the computer and never turn on sleep. As soon as the PC goes to sleep at least once, applications (only from the store) will start to close on all subsequent sleeps and you will have to restart the computer again. For me, the big problem is closing the Notepad app and, as a result, deleting the data in it (all printed text)
One person on reddit said that switching from Windows 11 Home to Windows 11 Pro helped him. Indeed, please note that everyone who points out this problem is using the Home version.