Hey there GAC2301,
If you're running into errors, try starting from the beginning and use the steps below to help with erasing your Mac without reinstalling macOS:
For macOS Ventura:
Erase your Mac
1. Choose Apple menu
> System Settings, then click General
in the sidebar. (You may need to scroll down.)
2. Click Transfer or Reset on the right, then click Erase All Contents and Settings.
3. In Erase Assistant, enter your administrator information and click Unlock.
4. Review items that will be removed in addition to your content and settings.
If your Mac has multiple user accounts, click the arrow next to your account name to review the items.
5. Click Continue, then follow the onscreen instructions.
Note: If your version of macOS has been modified, Erase Assistant can’t erase your Mac and displays an alert indicating you need to first reinstall macOS. Reinstall macOS, then use Erase Assistant.
For macOS Monterey:
1. Choose Apple menu
> System Preferences.
2. In the menu bar, choose System Preferences > Erase All Content and Settings.
3. In Erase Assistant, enter your administrator information.
4. Review items that will be removed in addition to your content and settings.
If your Mac has multiple user accounts, click the arrow next to your account name to review the items.
5. Click Continue, then follow the onscreen instructions.
Note: If your version of macOS has been modified, Erase Assistant can’t erase your Mac and displays an alert indicating you need to first reinstall macOS. Reinstall macOS, then use Erase Assistant.
Erase your Mac - Apple Support
If any errors occur, try using Disk Utility instead: Use Disk Utility to erase an Intel-based Mac - Apple Support
Feel free to post a reply with more details if you need further help.
Take care!