You need to use a different way to factory reset an Apple Silicon Mac in Recovery Mode.
A Mac Studio produced in 2022 is Apple Silicon-based, so you can't boot it into Recovery Mode using the Command + R keys, which are only for Intel-based Macs. I'm not sure if you want to factory reset your Mac or simply wish to access the desktop. Either way, you need to reset your password. Follow these steps:
- Turn off your Mac.
- Wait until it fully shuts down.
- Press and hold the power button until seeing "Loading startup options."
- Click Options > Continue. (Jump to step 9 if you don't have "Find My" or FileVault enabled.)
- When prompted to select an account you know the password for, choose "Forgot all passwords?"
- Keep your WiFi connection.
- Enter your Apple ID.
- Exit to Recovery Utilities.
- Click Utilities > Terminal.
- Type the command below and press Enter.resetpassword
- Click "Deactivate Mac."
- Enter your new password and password hint.
- Click the Apple logo and select Restart.
- Log into your Mac.
- Choose System Preferences > Erase All Content and Settings on macOS Monterey or earlier.
- Or Select System Settings> General > Transfer or Reset > Erase All Content and Settings on macOS Ventura.
Read more:
Forgot Your Apple ID Password? How to Reset the Password?
How to Factory Reset M1 Mac (MacBook Air/Pro, Mac mini, iMac)