Hi,
If it is Windows 11 OS, please see the registry fix on the device and see if it helps - https://azureo365ninja.blogspot.com/2022/09/windows-11-22h2-rdp-disconnects-and.html
Hope this helps.
JS
==
Please Accept the answer if the information helped you. This will help us and others in the community as well.