Chemical pregancy???

I took a test 2 weeks or so after sex and it came out positive I took it wrong by dipping it in the toilet and also it was sitting in the heat for weeks. Anyways after that we rushed to the store and I took four I took 2 digitals and three pink real response ones (all good brands) the first one that came out “positive” digital by equate . Mind you when I did have sex it wasn’t during my fertile it was right after my period already was over . So I didn’t know what to do so I waited until my period got closer and I took 9 more all negative and then I got my period EARLY and it was super heavy cramping and clots etc.. mood swings you name it . Can someone please tell me wtf happened was it a miscarriage ? Invalid test ??