Stabilization of tearing modes to suppress major disruptions in tokamaks