Motor driver and overvoltage spikes
Wow! That is a huge ring wave caused by the mosfet switching OFF, and the motors high inductance dumping its current back into the mosfet drain. Your clamp diode should be directly across the motor contacts for best clamping effect. M1 and C1 should have the shortest connection path possible, with the motor (+) terminal tied as close to C1 (+) as possible. Try a 330pF 100volt ceramic capacitor across the motor to dampen the ring waves intensity. It only last 5uS, which is not bad. You cannot make the ring wave and initial overshoot go away-only dampen them. Every SMPS has them to some degree. The idea is to keep the overshoot down by -3db if possible, to protect the mosfet and the clamp diode. This also shortens the duration of the ring wave. Increase the value of Rload if possible to trap the overshoot at the motor and clamp diode. Try to keep the overshoot equal to the supply voltage +10% at most.EDIT: Are you sure Q2 is wired correctly? If it is a PNP the emitter should be connected to R2. It is designed to dump the gate charge of the mosfet quickly. If this is wired wrong, that could explain much of the massive overshoot and ring wave, as the mosfet is not being switched OFF correctly.