If it was negatively affecting my personal relationship with my husband and that relationship was more important than my career goals or (and of greater importance) if it was affecting my children at an age when I was responsible for them.
I should stress though, if my partner was being unreasonable (i.e. the pressure was about their insecurity) then I would think very carefully before giving up on my career goals. My first marriage ended because my former husband was very insecure and felt intimidated by me studying. I had in the past given up on study and career plans and goals (three times) but there came a point when I realised I was giving into passive aggressive behaviour and it wasn’t in my (or my children’s) best interest to give in again. I let the marriage go at that point and I have never, ever regretted it.
My second husband has been 100% supportive of my goals. He actively encourages me to reach for the stars.
If this is a real situation (I realise you may be talking hypothetically), think very carefully before you give up on your career goals and if you can speak to anyone who has been through a similar situation, do so. I know you have just started a big and sometimes challenging study program. I also know you are in a fairly young relationship. The level of study you are working at (and even lower levels!) can be very hard on relationships and I found I really had to make sure I planned my weeks so I could balance my time between my work and my family.