Need advice

So me and my bf have been through a lot. As expected in almost a 2 year relationship. I know it’s not always going to be perfect. I do love him and I know he loves me. The beginning of our relationship was so toxic he was going back and fourth between his parents house. One living here and one in another state. There was a time where he started talking to his Ex saying how awful I was and he wanted be with her but as far as I know he never saw her. He’s come far tho. He’s changed for the better. He treats me well now. He does a lot for me and always supports me. But every tiny thing he does wrong makes me so mad and I go off. But he still puts up with it. Idk whether to break it off or keep trying. i feel like I expect him to treat me perfectly bc of how much he’s messed up in the past. I just wish I could be more laid back and forget about the things he’s done in the past. Any advice or past experiences?