Tap Wipe cache/dalvik and swipe. This prevents boot loops.

Before flashing anything, boot into TWRP, go to Backup , and select: