before flash put your device into recovery mode with mi flash tool pro and check the sw version installed on your device then download or
use umt put device to recovery mode factory reset by sideload mode the tool provide the firmware serach option on google automatically same version on device