I installed LineageOS on my S7 Edge and after I started it, it keeps saying "com.android.phone has stopped" after I removed my SIM-Card it said "Google Services Framework keeps stopping" and it goes in a bootloop after 2-3 min. with no input.
In my case, wiping Dalvik, cache, system, data and internal storage with TWRP did NOT solve my problem.
Eventually I had to use "Format Data". I guess this is some sort of a "nuclear option". You actually have to type in "yes" to confirm you really want to do it.
The problem was solved as a result.