I'm (27F) abhout to finish medschool and been told I'd be hard to be with

I am a female, 27 years old, about to finish medschool and becoming a medical doctor.

Well, I've always though that achieving my goals and having a good profession is important. I wanted to be able to provide something too, not just replace crappy jobs every 4 months and be dependant on my spouse... I want to make my family happy, my kids happy.

Yesterday, I have been told by a guy that my high earning potential might drive away some men from wanting to be with me.

I just want to say, that for the next 6 years until i will finish residency, my salary will be around 65K per year before taxes. I am planning to go to a less demanding field, like Family Medicine or Pediatrics, so I will have a nice amount of free time.

It just makes me so sad. Why? why is it that when women are successfull it's a threat for some man's masculinity?

I hate it that when men are successull, they are free to choose whoever they want, they are looked upon and respected, but women are expected to find someone who's able to deal with her success, and is expected to make a lot of sacrifices to be the stereotypical "good wife".

Pesonally i wouldn't mind how much money a man has or what's his job as long as he's mature and responsible.

It just feels so unfair.

Edit: thank you for all the replies,

I've been having a hard time lately, both mentally and financially, so sometimes it's hard to see past my insecurities after all these years in school, I also live in a small city and don't have so many friends so my support system is not that broad but im working towards making it better.

I had that hunch that this guy is just a douche but still, I felt inclined to ask what other people think on that matter