I had that problem twice. I remember immediately booting into TWRP and flashing again doing the next:
Wipes (dalvik, cache, system, data)
Delete android folder from file manager in TWRP
Wipes again
Install ROM
Perhaps it was just luck or something because there's nothing special in those steps...