Encryption Unsuccessful error
You are doing wipe - though you need to format.
While in TWRP, enter Wipe menu, then select Format Data (type yes and confirm); go back, enter Advanced Wipe and select everything, then Swipe to Wipe.
Reboot to bootloader, then boot recovery, push ROM &amp;&amp; install.
This is generally accepted course of action that regular user should do when error in encryption occur(s).