Hello Parth Rathi,
Welcome to Microsoft Q&A forum.
Before we proceed, may I have a photo of the settings to check for you? Please remember to remove all personal information (including your gamertag) before posting.
In the meantime, you can follow these steps to see if it helps.
- Type "Credentials Manager" in the search bar and press Enter.
- Select "Windows Credentials"
- Remove all entries:
- Contains or starts with "Xbl"
- Related to the Minecraft Launcher
- Related to your account.
- Restart your computer.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.