I am having the exact same problem after upgrading to Big Sur beta 10 (build 20A5395g)
Beta 9 was fine. And I can confirm it's true that if you start debugging your project while on another app, the issue does not manifest. So weird.
I hope it gets fixed in the next beta (also hoping GA comes soon!)