If the commander dies then a new commander could be chosen to lead.
The king is dead.
Long live the king.
Maybe a leader could be chosen from one of the 3 starting brothers. I find it strange from the description that the commander isn’t used in the battle, where the feck is he/her especially when the party is surrounded.