Every time you die, your armor becomes less durable. Repair your armor at an equipment repairs NPC or anvil to keep it in peak condition.