Shamed for a small baby

So I have my daughter a few years back and she was born on a smaller side at around 2.8kg/6.17Ibs.

And now im pregnant again and weight of my current is still on the smaller side so my mom was like when our family have children we go beyond 3.5kg/7.71Ibs. And added you ate so much and yet you cant give your child enough to grow, moving on I’ve met a friend and her mom and we talked about it too, so i told her that oh she’s measuring small, and she just say “oh that’s because you’re fat” and “fat people have smaller babies”. Well maybe the mean well?? I don’t know but it sure hurts because I was a big chubby kid and was always shamed for it. And now i feel so incompetent that i could not provide for my children because of my body?