The iMac was working fine and the photos of the specs were taken recently. I reset the hard drive back to factory but the operating system re-install does not complete. It reaches the end but doesn’t finish. The computer turns on and off and boots to the macOS Utilities Screen.