Question: can lydia die in combat?
Answer: Yes, but it's unlikely. As soon as they reach critical health, they deaggro from every enemy. So the only way for them to die is if you kill them or if something that was meant for someone else hits them. Or a really slow arrow or spell.