Please use "Copy to clipboard" and paste the actual error message here.
Without more details we cannot be sure. However, Android devices use MTP to communicate, which is known to not be the most reliable protocol. It sounds like that may have failed on you -- one common fix is to reset the device.