Iphone Keeps Disconnecting From Computer When Transferring Photos. Go to settingsphotos and scroll down to transfer to mac or pc keep originals should be checked not automatic this step solved my problem too but you need to convert iphone pics in heic format to jpg format with a converter in your pc if you want them in jpgjpeg format. To solve this error when copying files from your iphone or other device to your pccomputer running windows 10 here are steps to follow.

Connect your iphone ipad or ipod touch to your mac with a usb cable. Go to settingsphotos and scroll down to transfer to mac or pc keep originals should be checked not automatic this step solved my problem too but you need to convert iphone pics in heic format to jpg format with a converter in your pc if you want them in jpgjpeg format. Your iphone will shut down reset its network settings and turn back on.
Open its internal storage and open dcim folder.
Now disconnect the iphone and restart the computer. Now disconnect the iphone and restart the computer. Then reconnect your iphone and verify whether the issue got fixed or not. Check your router if it is working properly.