When you transition scenes, you possibly have audio playing to the same channels from multiple players. My guess is that you have some audio configuration on your system that doesn't like this change of audio source/routing/mixing.
Can you please take screen captures of your Audio setup in macOS? It doesn't sound like a feedback loop but seems like it must be similar.