Quantitative stability for hypersurfaces with almost constant curvature in space forms