Mechanical control of morphogenetic robustness in an inherently challenging environment