Rebuilding our relationship

My boyfriend and I are on break because of a misunderstanding. I was going through things mentally and almost committed suicide, but I stopped. I was so upset that I even said things I didn’t mean. I’m realizing that I shouldn’t have sent that message. And that I’m speaking to one of my close friends and she’s telling me we’re both in the wrong and other things which is a lo,t and things I didn’t realize.