Hello @Gurmeet Singh
Use runas /u:MicrosoftAccount\[my account] cmd.exe
from admin prompt on RDP host machine to force the machine to re-sync of credentials.
Replacing [my account] with the actual account name of the Microsoft Account.
Otherwise, you can switch from a Microsoft account to a local account and switch back to a Microsoft account. Or create a new local account on the source computer. See reference:
How to fix remote login problem with Microsoft account on Windows 11
Best regards
Karlie