I just spoke with Apple support about this issue and they had me go to terminal and then type resetpassword and then I erased the mac and was able to reinstall mac os big sur. Part of the issue was that I had erased the macbook air without creating any user accounts. After it reboots you will need to connect to wifi again.
Topic:
App & System Services
SubTopic:
Core OS
Tags: