MacOS boot and show "select your wifi network" then fails to install required updates.
I boot my Mac. Macbook 2017 15" touchbar.
It asks for the password as usual.
After it shows this screen "select your wifi network". It tris to install something then shows an alert saying "a critical software update is required for your Mac but and error was encountered while installing update. Your mac cant be used until this update is installed".
I tried resetting nvram.
I tried recovery mode + disk aid.
I saw some comments that this because of the firmware of touchbar. Tried booting in safe mode which works fine and then installing latest OS (monterey). This part is really mindblowing, when trying to install the Montrey, it asks for admin password and it rejects it. Dialog just shakes. I'm an administrator. The password is correct (I just typed it to boot the OS).
What can I do to get back to use my MacBook?
MacBook Pro 15″, macOS 11.6