A. Ensure that you are using the latest version of iTunes or Finder (for macOS Catalina and later). Update the software if necessary and try the transfer again.
B. Try using a different USB cable or port to connect your iPhone to the computer. Sometimes, faulty cables or ports can cause transfer issues.