Relationship advice

I feel like i am intentionally sabotaging my relationship but i don’t even know it. I have a bad attitude problem and it is something that i am working on and have been working but my boyfriend and i keep getting into stupid arguments and he said it’s because I’m losing my temper and giving attitude. He says he’s not going to continue to put up with it if i cannot change it but I’m really trying and I’m not sure what to do to fix it.

My boyfriend and i have a 12 year age gap also. I’m 23 and he is 35.

Any advice or words of encouragement on how to fix this issue.