Error during the ROM reinstallation procedure

Hi, the program Mi flash tells me erase not allow in lock state when i try to exit the fastboot of my xiaomi mi 9t pro, i followed this tutorial How to Unbrick/Unroot Xiaomi Android Stuck on Fastboot! - YouTube.