I've been having this same issue since I got my Pixel 8. I've only used developer settings for enabling wireless debugging to test mobile app development.
I've raised the issue before in Matrix and was told to disable developer settings and that there's nothing in the way GOS works that would cause this so it's probably something with my configuration. Disabling dev settings hasn't helped.
Multitasking on this phone is a nightmare. If I swap to an app to copy something, there's a good chance when I swap back, the app will be killed.
I asked around in the pixel_phones reddit if other users are having this issue and no one else there seems to be experiencing it. But here in the GOS forums, there's been a few threads about it. So it definitely seems GOS related to me.
For reference, I do not use a secondary profile but I do have a work profile configured with Shelter. I've also had two Pixel 8's and both have had this problem. When I got the second one (via warranty replacement), I set it up from new without using backups specifically to test out this issue.