If the error returns, a physical limit switch might be stuck closed. Inspect your X, Y, and Z endstops. A stuck switch permanently raises the lock flag.
To fix this, you must explicitly unlock the bootloader, which will wipe all user data from the device. Enable Developer Options On your phone, go to Settings > About Phone Build Number flashing lock flag is locked please unlock it first full
Xiaomi usually requires a waiting period of 168 hours (7 days) before they allow the unlock. If the error returns, a physical limit switch
You have the key and can replace the furniture (software) with whatever you want. If the error returns