Ok, I see,there is only Clear Cache. Still, you can delete Gallery Data from TWRP, by deleting the folder:
/data/data/com.miui.gallery
If you do, do it on your own risk
I had a similar problem with Gallery on my old Mi 9T, with MIUI 11 (long ago), and that solved
It won't delete your photos...