Help me before I lose my mind!!!

My boyfriend of 8 months won't stop telling me how i fuck up. I do what I can to fix problems when I cause them and I cease doing them. Then, when we're actually doing good for once hell bring it up by being short with me. I'm white he's black. My parents are racist fucks and keep me from seeing him. I pretty much only see him at school. I love him but I don't think he sees how much he hurts me when he does this. I get every relationship has its fights, but ladies, I need your help! I'm so sick of being depressed and feeling like I'm better off dead. And I'm scared I'm gonna feel that way again soon. Please give me some relationship advice before I completely lose my mind. I'm so sick of crying. And feeling like a bad gf. I'm 17, 18 in 4 months btw.