Im confused

I took a test and got a bfp but 2 days later one of the lines erased idk how that happened🤔 so took another one different brand and got a fain line so now im confused. I went to the er because i was spotting and they told me i was not pregnant😔 so now im confused.. these were my test