I have the same issue. The sound comes from iMac and the video goes to Apple TV. If you choose the sound device in sound setting, the airplay stops.
Maybe upgrade Apple TV to tvOS beta will solve the problem. But it is not easy. So I use airplay with my other macs which are still in macOS 10.15.6.