Go to TWRP, ignore password prompt, open Advanced > Terminal, run:
rm -rf /data/dalvik-cache/*
Reboot device. You should be able to open Settings.
Enable Dev options and USB debugging, then repeat commands. Accept prompt that will appear on the phone while doing first command.
If nothing...