Or can try restarting both devices, of course, or signing out of your Apple Account (iCloud) on both devices.
If you found this via Google as intended, welcome! (Apparently this is now the one page on the public web with this exact AirPlay error message written out verbatim.)
🙇♂️ 🙏