The error prompt window requires you to go to Xbox.com and log in to the Microsoft account. But there's no use in doing this, and here's what you really need to do.
Click the button in the window below to log in with another Microsoft account
You will find that prompts to log in with other Microsoft accounts, even if the window screen does not prompt for exact errors, you can also find this option.
Do not click on your own Microsoft account
Your Xbox Live Microsoft account is typically connected to Xbox apps. Please do not click on the connection point
Click on the new Microsoft account
According to the picture above, log in to your own Microsoft account, and then you will find that the login error should have been resolved.
This method may not be appropriate for all users, but if you are experiencing the problem, it is recommended that you try to fix it in the way above.