FYI your MIL is from the silent generation.
I’m a boomer and this harassment you hear is not new. When I was not even a week postpartum after the birth of the second of two sons, I was advised I needed to try to get pregnant again so I could have a girl.
That was March of 1985 while I was in line at the grocery store, and it someone I barely knew.