How do you still stay hopeful

My husband and I are TTC for our first baby. We really want to start a family and have a baby. We had 2 miscarriages and I am just so broken. How can I stay hopeful? How can I still believe in god? How can you believe that next time this will not happen again. This is the most difficult thing I had ever had to deal with. I don’t how to continue, I don’t how to keep believing in anything in life. I used to be so positive and so thankful for everything in life but now everything shuddered nothing I believed in stands. I don’t who to talk to, who can understand.