I'm sorry, I can't guess why he is the way he is. It probably isn't anything you did. It sounds like he has some stuff to work through.
I find that it is easiest to get over some one if I keep my distance for a while-- out of sight, out of mind. It takes time, but it does get better. I'm sorry you're going through this