Buckling instability in type-II superconductors with strong pinning