root access – Xiaomi MI A2 stuck in fastboot/twrp loop

I am trying to root my Xiaomi MI A2 phone with Android 10, I followed the steps to install twrp which was successfully done. After that I tried installing magisk to get root access. After following the installation guide and performing patching images, I am now stuck in a fastboot/twrp loop where I can switch between fastboot and recovery using the volume up and power button only. My pc cannot detect the device in either mode, although it had no issue detecting before. I also alternated between A and B partitions. How do I get out of this loop so I can do a fresh installation of ROM?

enter image description here

Read more here: Source link