I've had the exact same issue since upgrading.
About 36 hours ago I uninstalled a wallpaper program called “Lively Wallpaper”. Since then zero crashes. I never used to make much more than 3 or 4 hours before SAM Closed on its own.
Fingers crossed that this is it.
I don't think so because I had it on a complete clean and fresh install of Windows 11, only Sam was installed. Sometimes it ran 3 or 4 hours but sometimes a whole week but in the end it always crashed. I reinstalled Windows 10 and since then I am running Sam without problems, the uptime is now 31 days.