If just noticed that in windowed mode, it’s actually possible to click close window button in right top corner even when window is maximzed, see:
MSFS will close if you click the mouse button in such cursor position, so i suspect that this actually not a CTD, but “UX flaw” when using mouse in VR