The lightning strikes if you have a metal weapon equipped. You can tell if it is metal when you go to your inventory, there will be a flashing light on your weapon. Just equip a wooden weapon or none at all.
The golden hearts disappear after you get hurt enough, they don’t come back. You can...