Rename magisk.apk you have installed to uninstall.zip and install this file inside TWRP, it should say that magisk is being uninstalled. Flash stock recovery.img so you don't have TWRP anymore and make sure to update the Xiaomi EU fingerprint module in the updater app (very important)
Edit...