What was I doing wrong?🤷🏼‍♀️

Me and my boyfriend were together for a year and 7 months and this week he broke up with me because he doesn’t love me anymore, not ready to commit or doesn’t want to be in a relationship am I to blame for this or is he being a dick. He told me he wanted to go on a break but I don’t agree with them and seem that they never work so he broke up with me and told me he needs to clear his head. Does any of this make sense to you guys too because if you’ve been through the same what is the best way to get your mind off things? And does him not wanting to be committing mean he was cheating I’m so confused and just want some advice.