Try not to flash magisk it directly after rom, let system reboot first after flashing rom + gapps (optional)still a nope.
did exactly this:
reboot to recovery [email protected]
Format data
Reboot to recovery OrangeFox
Wipe dalvik, cache, system, vendor
Flash lineage 18.1, Magisk 25.1
Flash firmware fw_ginkgo_miui_GINKGOGlobal_V12.5.2.0.RCOMIXM_75abe1782e_11.0
Reboot
just boot loops still
If you're encrypted, you still can sideload it later