I really have no idea what caused it. I've never flashed anything other than 4.1 TouchWiz roms, but I know it's an intermittent issue with aosp roms.
You probably had a bad twrp image when you flashed it, or did something incorrect in flashify. I'm glad you got it working again though.
Sent from my SCH-I535 using Tapatalk 2