Question: do x wings have ejection seats?
Answer: Other ships used by the Rebellion/New Republic were also able to eject their cockpits: the B-wing and K-wing were capable of separating their cockpit for pilot safety. A similar ejection mechanism may exist for the X-wing, where the entire cockpit is ejected.