copy to file share error

I keep getting Failed to copy item to a file share. An unexpected network error occurred, not sure why this is happening. It is intermittent. I also found another error as well

Failed to copy item to a file share. FileStream was asked to open a device that was not a file. For support for devices like 'com1:' or 'lpt1:', call CreateFile, then use the FileStream constructors that take an OS handle as an IntPtr.