Open Run menu.
Type:
%AppData%.minecraft and hit the Enter key.
Look for a file or folder related to launcher_accounts and delete it.
Reboot.
Visit Microsoft Account Management.
Verify the accounts associated with your Microsoft account.
Ensure Account A is active and associated with Minecraft.