Recover macOS: The file couldn't be opened because it isn't in the correct format. Cannot even do a fresh installation and recover my mac because of this message.
Tried to erase my hard drive and install macOS fresh and even that fails due to the message about the correct format.
Mac mini 2018 or later