I use to get error 7 messages too, it's not the ROM fault it's basically twrp fault.
To fix , basically go back in to twrp and try flashing it again, but you have to do it the first thing when your in twrp do not do anything else in twrp otherwise it won't work and you have to restart twrp.