Do a micloud backup, put phone in fastboot mode and start mipc suit, instal v8.2.3.0 stable china, it will wipe everything and lock bootloader, start the phone log with mi account in developer options enable oem unlock, put in fastboot start miunlock tool v2 unlock, flash twrp, flash v8.2.3.0eu...