Try signing out of the linked Microsoft account and close out of any open Minecraft applications, restart the game, then sign back in to the Microsoft account. If you still see the error, repeat these steps above after waiting 1 hour, including internet troubleshooting steps. ^FF