How to Fix "An Error Occurred While Preparing the Installation" in macOS Recovery
The installer stops before it writes a byte. In most cases the clock is wrong, so the signed ticket fails validation against Apple. Fix the date, confirm the disk is GPT with APFS, then start again.