How to flash
LineageOS comes with force encryption enabled. So read on how to flash lineageos without any issues.
* Wipe cache, dalvik cache, data, internal storage, system and vendor
* Format data
* Flash Rom+Gapps+Magisk(Optional)
* Wipe data again
* Boot into rom
Note: Use the provided twrp by @vivekachooz or use lineageos recovery provided in the download portal of LineageOS for avoiding issues related to encryption.