Do you have network access to your assigned Desktop (VM) when you face this error?
what is the status of that VM when it's happened? I mean, is that VM up and run? and can you reconnect to the VM again or not?
You must check the Horizon event logs for more details ...