A stalker who bombarded his ex with up to 50 phone calls a day after she broke off their relationship has been spared jail.