Advice please

My boyfriend is ignoring me for no reasons. I’m trying to understand what I did wrong but I don’t know... last time when he acted like this, he said he wanted a break (and that break almost ruined our relationship)... I’m very anxious and maybe he needs some time alone, I don’t know. But the anxiety is killing me right now. I couldn’t sleep all night thinking that I did something bad. I just don’t know what to do