I didn't see aloyrender confirm if the freezing was fixed. If it was fixed, what was the cause? I'm assuming you're either using xtatu's invincibility code or vosman's health code. If it's xtatu's code, I'm not entirely surprised because he didn't always do a lot of testing of his own codes causing me to make my own. If it's vosman's, the code starts with a static pointer route to the player's health and if you're using a different version of the game that has anything different along that pointer route, it could risk crashing the game instantly as soon as you or enemies take damage.
If the codes by chance still cause a freeze, you can try cagao123's/GuitarMan's version of the infinite health code since he usually tests his well enough to know if there's a bug that needs fixing. This is what I had in the database for Silent Hill Downpour BLES01446 v01.00 av01.01 BLUS30565 v01.01 av01.01 that can be ported as needed:
Infinite Health
0
cagao123
0 018D76B4 7F9F1840
0 018D76B8 409E0008
0 018D76BC 3900270F
0 018D76C0 911F02E8
0 018D76C4 48A2D33E
0 00A2D338 498D76B6
#