Fixing “ADB Wireless Pairing — protocol fault (couldn’t read status message): Undefined error: 0”

If you’re trying to pair your Android device using ADB wireless debugging and you get this error: