I opened up to my best friend about a relationship problem - possible trigger warning

To keep it vague.

My boyfriend has an addiction, it’s hurtful, and causes problems. It’s been going on for awhile now, it’s not drugs or alcohol. His addiction caused him to inadvertently rape me, which he felt terrible about, and we have moved past and I am not affected by it. We keep it between us because he is embarrassed by it.

My best friend, for 8 years, has the same thing just not as serious. In the beginning I expressed my concerns with her because we weren’t that serious.

Now, our two year anniversary is coming up and I opened up to my best friend about the issue because it has still been happening. She was able to give me a different perspective on it because she understands while I can only sympathize. But for some reason I feel so guilty for talking about it and I can’t stop. I know she would never tell anyone but for some reason I still worry. And now what if my boyfriend gets mad because I opened up?

I just didn’t know what to do because we started fighting all the time because of this problem and after talking to her I found areas where I could be more understanding and patient. I have not told another soul and would never just throw this information out to anyone.

Am I wrong for confiding I’m her and should I tell my boyfriend? If he asked I wouldn’t lie but I’m not sure if it would make things worse if I told him that I outspoke.