I’m sorry you had to go through something like that — and I’m glad you were able to escape from it. You are right — these incidents are called ‘tantrums’, but unlike children, adults know better. They often use them to manipulate.
In my experience, sometimes space has been enough to stop — but at the end of the day, if the person continues to repeat the behavior regardless of the steps you take, cutting ties (in whatever way you can) is the only other option. Nobody deserves to suffer in a toxic relationship.