Miscarriage after glucose test

Irenaeus
I had a miscarriage when I was almost 3months pregnant. At my clinic app. My doctor told me to mix a measurement if glucose powder in water n bring it with me at my next app. I had mixed it with coconut water though. After drinking the mixture and having the test done I felt extremely weak and on my way home I drank a glucose/ energy drink called lucozade. Three days after I had miscarried. I can't stop wondering if it was because I drank those drinks that was high in sugar that caused my mishap. Can anyone share light on this for me pls.