A scaffolder who threatened to rape and kill his ex-partner in a string of “deeply abhorrent” messages has avoided jail.