Issue
Your iPhone keeps disconnecting from your Windows PC or Mac when you’re trying to import photos or videos. You may see the error “A device attached to the system is not functioning.”
Quick fix
Stop your iPhone from automatically converting the video to the legacy H.264 format by going to Settings > Photos > Transfer to Mac or PC and tapping Keep Originals.