Hello, and here are several workarounds provided, you may take a try, including editing the security layer, disable NLA and turn off firewall.
Remote desktop connection: An internal error has occurred
How To Fix RDP Error : An Internal Error Has Occurred Note: Since the websites are not hosted by Microsoft, the links may change without notice. Microsoft does not guarantee the accuracy of this information.
If the Answer is helpful, please click "Accept Answer" and upvote it.