Lost

I feel something is wrong with me because my ex-boyfriend broke up with me.I can’t stop thinking I must be lacking something. Now I have trust issues and I act like I’m an island.How do I push myself out of this wormhole I dug myself in?
Best Regards