I failed to install Magisk and now I can't get out of TWRP I have a Xiaomi redmi note 8, which runs on MIUI-11,
I've recently unlocked my phone with MiUnlock, the official program of xiaomi to unlock (root) your phone.
I've stumbled across a few hickupps, but eventually I got here, I can't get further though...
I installed TWRP using the ADB terminal, wiped the cache, flashed a zip that disables force encryption treble and after that, I installed Magisk (I did this all with the compatible versions for xiaomi redmi note 8). Normally, I should've been able to just reboot to the system, but TWRP just comes back.
When I reboot, I first see: Redmi by Xiaomi (screen 1)
Then: Redmi Note 8 by Xiaomi powered by android (screen 2), this takes longer than it normally should,
after that I see screen 1 again, and then again screen 2, whereafter I get the splashscreen from TWRP and it boots in recovery again...
I've already tried clearing the cache, enabling &quot;System&quot; in mount, tried to write this code in the advanced --&gt; terminal option:
dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc bs=256 count=1 conv=notrunc
Nothing helped me, one other weird thing that scares me is that, when I watch my folders with file explorer from windows, everything has gotten a random string as name... You can see it in my attachment.

I would be soo grateful if someone could help me out.
Thanks for being awesome!
If you don't need the data download the stock fastboot rom for your device and flash it.
From your comments above it looks like you've already wiped your data.
So I would suggest that you download the stock fastboot rom. Do a clean all flash. Don't do the clean all and lock flash, as it will lock your phone.
Once it's finished, you can flash twrp but don't try to disable file based encryption and then try flashing whatever other rom you were trying