@Uzephi well, without having Magisk installed it's very unlikely that a bad module is preventing the flashing / booting. But you are right that this might have led to this situation: as soon as there is a boot image with Magisk starting it will try to initialize the bad module -> boot will fail -> boot slot will be marked as "failed"
On reboot the other slot will be used and if there is also a Magisk patched boot image the same procedure will happen ... and finally both slots are no longer bootable.
On reboot the other slot will be used and if there is also a Magisk patched boot image the same procedure will happen ... and finally both slots are no longer bootable.