And Mvas is right. Did you connect an inverse parallel diode to the motor? A schottky type would be best.How far does the Motor travel, after power off, with a high amp Schottky Reverse Bias Diode attached to the motor?
If too much, then add a low ohm resistor in series with diode?
Is that enough Dynamic Braking?