What happens if my character is killed?
Solution 1:
When in the barracks, check the green icon next to your characters rank. It says, that this pilot is your character, the commander, and cannot die. However they will still get injured and may have to spend a prolonged time in the medbay.
In the event, your commander would be killed normally, they just get put into the medbay with max injuries.