Family menopause history??

Hi all I’m 41. Trying for a baby. Have endometriosis. Very blessed to have a daughter of 20. Several laparoscopy etc. 2 miscarriages last year and my gran told me that both her snd my mother went through the menopause at 39. But I was pregnant at 41. Still having periods. She’s frightened me and so upset at the moment. Anyone else experience this ? I’ve seen the ovulation sac during a scan a few months back and my gynae said I highly doubt it with two pregnancies in a year very recently but doubting myself 🥲