I'm sorry, but it is a Windows issue. For some reason, the new Photos app in Windows 10 is a piece of crap when it comes to transferring photos. You can try this link from Microsoft for help, https://support.microsoft.com/en-us/help/4027134/windows-10-import-photos-and-videos-from-phone-to-pc
I have found that if I open Photos first, then unlock the iPhone before connecting it to the computer it tends to work better. I've also found that if you are trying to transfer less than 100 photos is tends to work better. It seems there is an issue with the USB connection to the computer, that while Windows is transferring, it is sending some kind of strange message to the phone. I've taught intermediate Microsoft Windows in college for several years, since XP, and cannot seem to determine the issue. I can still get it to work well in Windows 7, but once Microsoft got rid of their Image import utility, the process has gone downhill.
I've purchased a small flash drive that connects to the lightning port of my iPhone and there is an app on the iPhone an it will copy the photos over to the flash drive and you can transfer them to the computer. Only downside of this is that it won't delete the photos from the iPhone after they have been imported.
P.S. It is from Sandisk, and the app is called iXpand Drive. All you have to do is plug in the drive and it will take you to download the app.