The motor won't be forced round but it can have some inertia behind it when it stops. There is an electric brake system in place for this?
I'm assuming you did not originally use "field weakening" to drive the motor.
Inertia means it's slowing down, and generating less and less back-EMF voltage. If you drove it as fast as you can (without field weakening), then the back-EMF voltage,
at most, equals the supply voltage and ramps down as it slows down. No problem.
If coasting down is not an option but you
need electric braking, then you indeed have two options (well, one really...)
* Full blown short circuit. Not usually possible due to exceeding safe currents, blowing up the MOSFETs and at least causing mechanical damage. This dissipates energy in all parasitic resistances; windings, wires, Rds_on... But sure, if you really short the motor, then it won't generate any high voltage...
* Regeneration; for example, in FOC terminology, just change the sign of torque-generating current (Iq), the correct commutation will follow. But this makes the motor inductance and the bridge act as a
boost converter, motor BEMF being input, DC link being output, supplying the DC link to almost arbitrarily high voltages from even quite low RPMs. So you need a safety voltage comparator
for the DC link, which turns off regeneration, i.e., defaults back to coasting by not driving the FETs. Or, use resistor banks that are turned on before DC link max safe voltage is exceeded, regulating it at safe max voltage. A simple TVS-only solution would be expensive because they are not rated for very high continuous power, so you would need a lot of them. The "T" in the name has a meaning, after all!