Advice not sure what to try anymore

Ladies I need advice I just had my 4th miscarriage today I am not sure what to try anymore I feel like I either can’t get pregnant some months and the times that I have gotten pregnant I can’t seem to stay pregnant any advice on what to do to maybe kinda prevent miscarrying