What to do...

My boyfriend and I have been together for a little over a year now. Things were really great at first and then we moved in together and he’s just changed. He will yell at me over little stuff and threaten to break up with me. It’s honestly so stressful that most of the time I shut down. Everything is always my fault and if he asks me why I did something my answer is never good enough and he’ll keep asking me why. Granted the past few days have been pretty good. He even made me my own little office corner. But I still don’t know what I should do. I really love him and I want to marry him but I don’t really care for how he’s treated me lately. I’ve tried talking to him about it but he doesn’t want to. I’m just really torn right now and I need some advice on what to do.