They were hurtful and rude comments so it's understandable that you feel hurt, I would too.
What I found helpful is to challenge comments either in the moment or later out loud or in writing, not so much to be sent to them but to get it out of your head. You can rip the paper later or keep it in a private journal.
I think it's a CBT type of thing but I don't know the official tool name. I sort of say out loud what happened or what was said and then I imagine it happened or was told to someone I love, I often think of my DC as I love them more than I love myself, and then I reply to the person as if they were there and say what I couldn't say in the moment. I tell them what I really think.
For example, the test was too easy.
I would say: I deserved the mark that I got because I worked hard for it. What you are saying is rude and unsupportive, a good parent wouldn't say this to their child. You should be proud of me and not negate my achievement, are you jealous that you could never get a grade as high?
Your comment was dismissive of my achievement and hard work, who the hell hurt you to say this to your own child? That was unkind and no wonder I still struggle with self worth because of the way you parented me (so acknowledge your own feelings, back yourself up, stand up for yourself, show compassion to yourself). what you said dad wasn't something a normal, kind adult would say to a child you weren't a good dad and so your comments are not a true reflection of me and my achievements. This is more to do with your own messed up head and issues that you are treating me this way.
Really tell them off out loud or on paper. I think when we remember a bad comment, get overwhelmed by sadness and then panic and try to quickly suppress thinking about it we don't process it til the end, it is painful but push against the desire to stop thinking about it, really push and explore what sort of person made this comment and in what context and whether their behaviour or comment was fair, knowing what you know now about life. You don't have to accept others opinion of you even if they are your own parents as parents can be cunts, too.