The failure is because there are too many simultaneous connections to the share, it would only happen if you do many scans in a short period of time to the share. The max concurrent logins to a share is 20 in Windows.
So you can try maxing the connections to 20 on the share, or switch to FTP that does not have the issue as seen here in SMB.