I am so very, very sorry that this happened. He is a coward in my opinion. He should have come over, sat down w/you and explained how he felt...not do it via text.
You are worth far more and the right man will come along. This is just one toad in the pond.
I recently came across a quote that reminded me of you and your situation. It goes like this:
"You were enough Maybe you were too much Maybe he prefers less And you deserve more"