Hello,
May I know your Virtual Desktop environment? If you're using VDI software like Microsoft RDS, check the RDS configuration on the server side to ensure that it is properly configured to handle disconnections and reconnections. You can open the 'Local Group Policy Editor' on the server by running 'gpedit.msc'. Navigate to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connection. Look for settings like "Configure keep-alive connection interval" to ensure these are set correctly.
Besides, ensure all drivers and client software are up to date. Outdated drivers for USB ports or outdated virtual desktop client software may cause compatibility issues.
You can check the Event Viewer on the affected machines for any relevant events at the time of issue rise. Locate the path: Applications and Services Logs > Microsoft > Windows > "TerminalServices-LocalSessionManager". Please check the options shown below before viewing.
I hope this helps.
Best regards