In most cases, a miscarriage cannot be prevented because it is the result of a chromosomal abnormality or problem with the development of the fetus. Still, certain factors — such as age, smoking, drinking, and a history of miscarriage — put a woman at a higher risk for losing a pregnancy.