How do people become a crazy ex?

I am genuinely curious as to how people actually become like that. If y'all have similar experience maybe it'll help.

edit: I almost became that crazy ex.