Thank you for the bug report. Those 2 glitches you described are parts of one big nasty bug. However it should've been fixed in version 1.2. Did you encounter this bug on older version of the game or on 1.2?
You'll get invincibility after getting hurt if you buy Ghost Amulet in the shop.