So I was updating Magisk a few days ago and the moment my phone updated it crashed to fastboot and wouldn't allow me to boot back into the system. I attempted to remove the Magisk module that was causing the issue (if that was even the problem). When that didn't work I somehow managed to overwrite the OS with a new version of MIUI however it wouldn't allow me to log in due to not being able to check security (at this point my data is gone and I just want a working phone). So I went back to the drawing board and wiped Dalvik, Cache, Data and System. Since then I have been getting an Error 7 message on TWRP whenever I try to install an OS. I have tried removing the append data from the updater-script file which did nothing and I have also tried installing over fastboot which didn't work. Does anyone have any idea on how I can get an OS working on my phone just to have a phone back? (Unable to post a link because this account hasn't posted enough yet but here is a pic of the error message) imgur.com/a/k88dED1