It’s me not him

Hii!

My boyfriend and I recently broke up... I’m so devastated, he was incredible to me.... my thoughts in my head got the best of me and made be angry with him or rude at time. But I’m reality that isn’t how I wanna be around him. He felt a lot of negatively energy from me. The is the third time that he’s brought up the negativity but he broke it off this time. I’m so sad... today we talked after 5 day without talking (break up) and said he isn’t ready for a relationship at the moment. He wants to work on himself and i should work on mine. Which I am, I started readying this great book about how to be happy without your mind messing with your feeling. I wanna be with him.. I want him back... right now he wants space and said he would message me when he is ready to talk as friends. Also he said only time will tell what happens in our relationship. I’m so upset... any advice? How to feel better?