that happens to me too but its not related to rom , just press back and try again , my problem propably was maybe new magisk , not sure.I have the same issue, wiped everything and formatted data in TWRP, still gets stuck on animation after bootloop. After first boot it goes as far as to Android setup Welcome sign, I press Start, then the circle starts going saying "Just a sec", then reboots and gets stuck on Lineage animation. Also tried with no GAPPS, no Magisk, still the same. Did anyone find a solution?
P.S. Model is E5823.
by the way flashing this https://forum.xda-developers.com/t/rom-11-x-havoc-os-4-2-unofficial-suzuran.4249577/ using the same method boots fine but fingerprint sensor and SafetyNet do not work there so this thread's ROM would be much better