GrapheneOS Turn off developer options if it's enabled, and figure out which apps are causing the issue by exhausting memory or whatever else is happening.
Developer options are off.
I posted a video of typical behavior above: https://i.imgur.com/vxlpmN0.mp4
Stuff like this happens all the time on my 9a with GrapheneOS, I've tried with the same apps in the same configuration on stock OS and it does not happen.
I've reinstalled GrapheneOS on my 9a and tested this on a completely clean install, installed a couple apps, and switching between them will kill the 3rd or 4th app when switching between them. Reinstalling the stock OS and testing the same apps, and it does not happen.
GrapheneOS It would happen on the stock OS if you had it set up similarly to GrapheneOS. It's due to your configuration, not GrapheneOS. GrapheneOS does not manage this differently.
Well, it doesn't.
One bad example is Nextcloud, opening the app, signing in which opens a browser, switching to Aegis to get a 2fa code, switching back to browser, putting in the 2fa code, going back to nextcloud, nextcloud has been killed in the background. This happens both with secure app spawning enabled and not.
The same thing on stock os? No problem. Works just fine.