help fix "an error occurred while preparing the installation. try running this application again."
I'm using MBA 13" 2017 and before I decided to erase all the computer data it is running macOS Monterey. After I formatted my computer using disk utility, I encountered some difficulties as I can't reinstall Monterey. I shut it down then turned on the laptop again then it showed the page with folder and a question mark saying "support . apple . com / startup". So I put it on recovery mode by doing the cmd + r. It showed the internet recovery mode with the macOS Utility and it has the option to reinstall the macOS Sierra. (which is fine with me... i just want my computer to be working again :( )
I tried re-installing but it always results to this error. I have tried different tips on how to fix this kind of error such as: updating the date using terminal, deleting the drive, and tried re-installing. But it's still unsuccessful. Also tried researching any answers through this apple forum and over the internet but it still results to the same error.
I don't have any more idea how to fix this. I hope someone can help me.
MacBook Air 13″