I have identified the problem with TWRP freezing when pressing on install and it has something to do with the cache partition.
Once you wipe it, TWRP will get this issue, maybe not straight away but a few times and the problem will occur. The only way to get it working again is to reinstall stock firmware (without excluding anything, full wipe with stock firmware).
Next time you flash something, don't touch cache since it may screw up TWRP again. If you need to wipe the cache and dalvik, just choose dalvik cache