Caleb, your application running steel-on-steel pinion/spur interface or steel-to-nylon/compo spur?
Pinion/spur lash issue? Pinion grub screw issue? Motor mounting issue? Spur gear a stand-alone install or part of a diff case/cover?
Looking at the picture it appears one gear tooth catastrophically failed followed by less than total failure of gear teeth as the pinion moved out on the motor shaft until kicking free of the spur. Lots going on there.
Regarding gear lash: As standard practice I'll check lash at multiple points to ensure there is no bind for whatever reason. Lots of variables in what seems a straight forward interface of gear teeth.
RRP (Robinson Racing Products) has been my pinion go-to for years. They be my recommendation. Even with RRP, check and double check the install. Good luck. Cheers. 'AC'