That's probably because one of the mods your using, I've noticed in inherent problem in some roms where if magisk is installed during Rom installation and then you proceed to flash kernel then magisk right afterwards it'll bootloop, if your dirty flashing always clear the magisk manager data and...