Stuck on twrp splash screen

Wait 5 sec.

I was flashing the android 12 pixel experience gsi but it wasnt working. So i tried restarting but now it's stuck on the twrp flash screen. I disabled usb debugging a while back but forgot to turn it back on again. When i try flashing a different version of twrp it works but gets stuck on the splash screen again... So i thought i'll flash the stock firmware which worked but got stuck in a bootloop. Could someone please give me some tips?