AITA for telling my partner a hard truth?

My partner (M26) and I (F25) have been together for 10 years, and we’re currently both in medical school. For the past two years, he’s been struggling with his studies, frequently expressing that he doesn’t enjoy what he’s doing and feels pressured by his family to continue. As his partner, I’ve tried my best to comfort him and offer advice when needed. I admit that I may not always handle things perfectly, especially since I’m dealing with my own stress, and there have been moments where I’ve been harsh without intending to be.

Recently, he opened up to me again, and I decided to be honest with him, straightforward but respectful. However, instead of taking it as constructive feedback or a reflection point, he got upset and said hurtful things. He told me he’s never felt comforted by my words and that I don’t understand him.

**EDIT This is what I said to him, to give him the beneift of the doubt, and what happened

I told him, “Rethink your decisions regarding your med school journey. It’s still up to you whether you want to continue or not.” I also told him that he has a whole lifetime ahead of him and shouldn’t focus on the idea of being a disappointment, as it’s clearly taking a toll on his mental health.

Also, I offerred him if he wants to hear the truth which I have been observing since we started our med journey together.

He replied that it was easy for me to say those things because I’m not in his position. And probably he got triggered with the fact that It was so easy for me to say those things.

Honestly, after those reply, he started saying harsh words to me, and that’s when I decided to end the conversation.

I know I’m not a perfect partner, but I’ve always tried my best to understand his struggles, his family pressures, and his overall situation. This time, I really just wanted to tell him the truth, hoping it would help him, but it seems like I ended up being the bad guy.