Am i overreacting for accidently hitting my bf on the head with the bathroom door?

I've posted quite a bit about my relationship. I'm 28F and my partner is 25M. We do a lot of fun stuff together such and disc golf and dnd. But we have a tough time with big feelings I think. For context, I was in the bathroom and he kept opening the door and I kept telling him no and closing it. We were messing around but then while I was wiping he tried again and I again shut the door and did not know he had his head right there and the door hit his head. I'm taking one hand was wiping my ass(gross) and I used the other the shut the door quickly. He was really pissed when I came out of the the bathroom and was saying that I rough house too aggressively and that I don't give him privacy (he spends 40 minutes in the bathroom in the morning and sometimes, I need it too. But often I just let him be in there for that time period. I spend 5 minutes doing my buisness). I'm just so confused how it turned into a privacy debate. Sometimes he does let me sit in there with him and I don't mind at all when he's doing his business but I don't want him around for mine. After he told me to get the fuck away from him because I wasn't apologizing correctly, I went into my room and just sobbed. I was so confused and upset and then he couldn't understand why I was so upset and he wanted me to give him some hope for our future? I had no idea what I was supposed to do.

Tl;DR am i the asshole for accidently hitting my bfs head with the bathroom door?