I don't know how to do a relationship

Isabella • Majoring in Business Administration
Hi, this is my first time posting on this, but I feel lost. See, when I was a sophomore in high school-- I got into this emotionally and psychologically abusive relationship, but didn't know it at the time and when I graduated we ended things but it never really ended until December of that year.
 
Then four weeks later, I got into a relationship with a lovely man who I can finally be myself with and for nine months we were happy -- until I started loosing control of myself and my depressive levels got hogged because of school stress. We started communicating less and we get agitated with one another (mostly him at me) because of it. I tried to give him more of my time, but I barely have any as it is. What I give him is either too much (which annoys him) or not enough (which frustrates him) and my in between isn't enough.
I know it's my fault that this is happening because in someways I am letting my past dictate me. The last one I was in was my first and it was completely wrong.
How do I do a relationship right?