Hi,
Please refer the articles mentioned below to repair your Windows machine w.r.t. RDP.
General Remote Desktop connection troubleshooting - Windows Server | Microsoft Learn
Remote Desktop - Allow access to your PC from outside your network | Microsoft Learn
Advance Troubleshooting for Remote Desktop Protocol (RDP) in Windows - Microsoft Community
Please update with your findings!
Sincerely,
CK