Xiaomi android always boot in recovery (twrp) mode
Yes, the best solution is to flash the stock firmware. Or the other option is if you backed up recovery partition then you can flash it through twrp to go back to stock recovery, which can solve your problem.