Pregnant with 3rd baby, had my 2nd 4 months ago

Hello I have a 6 year old and I recently just had a baby 4 months ago and I just found out that I’m currently pregnant again. I was diagnosed with endometriosis through having a surgery done on my right ovary due to a cyst and I was told I would no longer be able to have kids.. well 2 years later I now have a 4 month old and expecting again. Don’t loose hope!! Has anyone gotten pregnant before a year after having their baby? I’m so terrified and I have no idea what kind of risk my baby is at. My husband and I ate in complete shock once again.