I also had this problem, I fixed it by removing my account by going to Settings > Accounts > then clicking on the 3 dots and removing my Mojang account. After you remove the account sign in again using your Microsoft Account.
I also had this problem, I fixed it by removing my account by going to Settings > Accounts > then clicking on the 3 dots and removing my Mojang account. After you remove the account sign in again using your Microsoft Account.