Yeah, there are several components that do this: MOVs, avalanche diodes, zener diodes, etc. Gotta be careful though, some components (avalanche diodes) actually generate RF noise. Since the motor wires pass AC (I know it's PWM, but it's still AC), maybe a $0.39
MOV would be the best bet. Something with a breakdown rating of about 1.5x the max battery voltage should work fine. And I would just put them across the motor leads since the motor is what creates that back EMF. There isn't anything in the battery side that would benefit so I don't think I'd put anything there.