Error: Domain join failed with [Error Code: 87] The parameter is incorrect.

Cause: Incorrect details in Workspotconfig.xml in the Template.
Fix: Reconfigure the Workspotconfig.xml by running WorkspotConfigEditor on the Template and reprovision the failed VMs in the Pool.
Here are a few reference links to troubleshoot errors while joining a computer to the domain: