If these nails prevent water from reaching one's skin then your prayer are invalid and obliged to redo all of them. And Allah Knows Best.