Feeling discourage

A year ago I found out I was pregnant. I was already having issues with my thyroid, I was preparing for Surgery to have my thyroid removed I was taking a pill for two days to stop the function of my thyroid which later I found out it was harmful to a fetus. Two days later I went to my obgyn to receive a normal check up and found out I was pregnant. I end up having a miscarriage and it's a year later and I have not been able to conceive my thyroid levels have been normal. My endocrinologist said its not a thyroid related it's gyn. I am just feeling so sad at times bc I am not able to give my husband a child. I have a 6 year old