A defective or improperly wired mag switch can do it. If the engine has only one impulse mag, it should be starting only on that mag.
A wrong mag model can do it, too. There are various degrees of impulse retard, and if the mag has too little it will fire too soon before TDC and kickback is the result. And, as Bell206 says, mags set too far advanced will do it, and they'll also damage the engine.
If the vacuum pump fails during kickback, thank your luck. It saved you from an inflight failure. No vacuum pump will fail being spun backward unless its vane wear was really bad. That's one reason why I only bought Rapco or Tempest pumps: they had a means of periodically measuring vane wear so that one could replace it before it failed. Never had an inflight pump failure on any of the school's airplanes that way.