VTE during pregnancy

So I’ve had 2 miscarriages in a row and went to a fertility specialist and found out I have possible blood clots while pregnant. So I was told when I get a positive test to call them and they’ll start me on blood thinners. So I’m scared has anyone had to take these and how long would I have to take blood thinner for? I’m nervous about it all an just want everything to go smoothly and have a healthy baby.