Best solution > Flash by zip, if you have the zip recovery file with original recovery (Settings > About the device > tap on MIUI version > 10 x tap on the big 12 > 3 dots menu > Select an update to install > choose your zip recovery file. It is not clean but it is safe.
Second solution > Edit...