The definition
The expansion ratio (often written ε) is the area of the nozzle exit divided by the area of the throat. The higher it is, the more the exhaust expands, and the lower its pressure and the higher its speed when it leaves. That raises the specific impulse.
The matching problem
The best nozzle is one where the exit pressure equals the outside pressure. Air pressure falls as a rocket climbs, so no single nozzle is perfect. A sea-level engine uses a modest ratio, perhaps 15 to 30; a vacuum engine uses 80 or more, which is why upper-stage engines have such large bells.
Flow separation
If the exit pressure falls too far below the outside pressure, the flow detaches from the wall, which makes the thrust unsteady and can bend or crack the nozzle. As a rule of thumb it happens when the exit pressure is below about 40% of the ambient pressure, and the game uses that figure.
In the game
The Design office has an expansion-ratio slider on the nozzle sheet, and a bar that shows the exit pressure against the air with the separation limit marked. Move it up on the stand at sea-level pressure and watch the bar cross the line, then switch the stand to a vacuum.
Try this in the sim
Exit area over throat area, and flow separation.