Solution or proper cause of this error in LR 9.0

Please find a solution or proper cause of this error.
The following is the error message, we encountered for the script which is recorded in LR 8.1 when running in LR 9.0 Controller

Error -26000: rc=-1/WSAGetLastError=10038 from WSAEventSelect(_nSocketFD=4294967295, _pvEvent=00000000, muiNewDir=0x00000021) in SocketDesc::SetWaitDir for this=00D3465C : An operation was attempted on something that is not a socket.