Literally doing everything possible

I’ve changed my whole diet, cut out most carbs and sugars (dr approved) lost weight, exercised, cut out caffeine completely, tried any vitamin or supplement that I can take.. idk what else to do I can’t keep a pregnancy past 5 weeks. Just sitting here tonight feeling sorry for myself.