Stabilizing the spin vortex crystal phase in two-dimensional iron-based superconductors