Check compression springs for safety against buckling. The required working deflection (given as the percentage ratio of the spring free length L0) must be lower than the limit deflection determined for specified slenderness ratio L0/D given by the respective curve, as shown in the image.
For a spring that cannot be designed buckling-safe, use a pin or housing as a guide, or divide it into several short springs.

where: