I'm 39+4 days and had pains all night and lost this ... Opinions?

💙💗MAMA H💗💙 • Finally got a BFP at 11dpo due 15/5/15 trying to conceive baby#3! Pregnant !! 3rd baby !!
Pains woke me up from 3am Til 8am now have stopped but just lost this?! What's happening?