Which model of 3DS are you using? I’ve noticed that the 3D Pokémon games have a tendency to handle poorly on the Early 3DS models, which could be why it crashes. It may be more of a system problem than a cartridge problem.
Otherwise, as said above, check if your 3DS or Cartridge is damaged in any way, and videoing the game crashing may help as well. :P