This issue is described in SAP Note: 2956817. Here is SAP's description of the error:
As per our developers, the error occurs from within OS. Below are some of the solutions we have offered in the past for this error.
1. Restrictive configuration under user profile.
Check the configuration under gpedit.exe → User Configuration → Administrative Templates → System → User Profiles. Make sure that there are no restrictive configuration
2. Slow workstation.
In general, Workstations which has slow response for any operation on the operating system. Make sure the workstation is correctly sized considering all installed software’s.
3. Add-on using multithreading and make UIAPI connections.
Multithreading is not supported for Business One SDK. [This is not something we do in the Boyum Add-ons during this connection phase].
If you need more info then please contact SAP Support with reference to the SAP Note.