Why do i keep having mc before my 18 weeks .

Shirley
I have had 4 mc in two years when i almost get to my 18th week it happens again is it my age im 35.this time i was pregnant with triplets.what am i doing wrong.im so heart broken .i think im done with my ttc.plz sometell me what im doing wrong