Connection Failed: There is no available licenses on this server

Cause: A robot/or multiple robots are using the same machine key for their connection to your Orchestrator. As they are connected to Orchestrator, the available licenses are consumed and a new robot doesn’t have any available license to connect again to the Orchestrator.

Check the solution from here Robot Licensing Failed. There are no available licenses on the server. (#1914) - #5 by Sax72

You may try to edit the machine template, remove the license (set to 0) → Save → edit again the machine template → add back the available license → Save → Connect again in Assistant to retrieve the license