Changing audio output on Mac causes TV to crash

I noticed when using my Mac that TeamViewer had started to crash a lot lately. I managed to narrow this down to every time I switched on my external speakers it happened. At this point the Mac automatically changes the sound output to the newly switched on audio device an TV crashes.

Experienting I could cause it to happen by switching to any other physical sound output in OSX System preferences. e..g if I currently have Soundflower selected but then switch to my Benq monitor then TV in the background crashes and pops up the crash dialog box.

I am on TV 12.0.78517