Hello, I went through the same thing
and the solution was to install the CORRECT TWRP FROM THE SAME TWRP or INSTALL THE TWRP IMAGE AGAIN FROM FASTBOOT WITH CODE FROM THE COMPUTER AND reinstall the ROM FROM THE CORRECT MEDIUM THE LAST IS MIUI 13.0.8.0 STABLE AND IS INSTALLED BY TWRP