About 8 years ago, there was a guy on this forum, who broke his throttle, which made the motor run continuously at half of maximum speed. That's what happens when the zero speed magnet gets broken off, or you break the plastic throttle-stop. Instead of switching off, he used his brake to stop the motor and he didn't have a brake switch installed. The high current due to the stalled motor blew the MOSFETs in his controller. The motor was OK.
That's a really daft thing to do. If your throttle breaks and causes your motor to run when you don't want it to, all you need to do is lift the spinning wheel off the ground or lay the bike on the ground, then you have all the time in the world to switch off the bike. After that you can disconnect the throttle or cut the wire, then you can ride home with just the pedal assist. You need a new throttle anyway, so it no problem to cut the wire, or a big heave-ho should pull the cable out of the throttle, and if you haven't got the strength to do that, use a stick like a tourniquet.