Erased HD and OS inadvertantly
I was running macOS Monterey version 12.7.4 on an iMac Late 2015 model. I wanted to prep the computer for resale and remove all personal data from the computer and used Disk Utility to erase the HD not knowing it would also delete the operating system. I've rebooted in Recovery Mode and tried to Reinstall macOS but I keep getting an error message, "An error occurred while preparing the installation. Try running this application again." After erasing the HD again and retrying three times, it's the same song and dance. Is there any hope on getting an OS back on this computer?
Earlier Mac models