Miscarriage!!

What can be the cause of a miscarriage? Bc I just had my first miscarriage and I’m afraid if I get pregnant again that I’m going to have another miscarriage Bc I don’t know what’s causing me to have them 😞