If anybody has this problem with the latest version, I have seen that in the past newer versions were getting disconnected so the solution besides mentioned the ones from above would be to move to the previous stable version (reference: ui automation - UiPath Error : Desktop has been disconnected while performing UI actions - Stack Overflow), and I have downgraded the studio from the latest beta 20.10.2 to the 20.4.3 version and it solved the issue.