This post fromMiniTooltells you how to get rid of the issue.

Phone Link only enables you to connect your Android phone to your Windows 11/10 PC.

Some users report that they meet the Phone Link wont generate a QR code or PIN issue.

click Reset

Then, you’re free to turn on your Windows Defender again.

To rule out this possibility, you could check whether other Internet-connected devices can use the Internet normally.

you’re able to alsorestart the router or modemto have a try.

Here is how to do that:

1.

Press theWindows+Ikeys together to openSettings.

Go toApps>Installed appsand find thePhone Linkapp.

  1. hit the three horizontal dots at the right end and selectAdvanced options.

Navigate to theResetsection and select theResetbutton.

Restart the Phone Link app and try generating the QR code or PIN.

If you only have a Microsoft account, use this guide to create another one and try your luck.

Choose one way to try.

Hope this post can help you a lot.