Seeing a heartbeat

I had my first ultrasound on Friday at 6w2d (early scan because we did fertility treatments and I have a history of rpl). We saw a heartbeat of 122bpm!!!! What are my chances that this could still end in miscarriage after seeing a heartbeat?? I know it can happen but I’m having a hard time finding statistics.