Transvaginal Ultrasounds and Miscarriage

I had an tv ultrasound at 5 weeks. At that time, all they could see was the sac as it was too early. Afterwards, I had cramps, a heavy feeling in my uterus and what felt like uterine spasms. When I was 6 weeks and 2 days, I had another tv ultrasound and a heartbeat was detected and everything looked great. I had mild cramps after that one.4 days later, there was no heartbeat and baby had stopped growing a day or two after the second ultrasound. Does anyone think a tv ultrasound could cause a miscarriage?