What tellytubby explained is exactly what happened to me, last time and this time.

But I also suffered horrible nightmares through the first trimester and woke without being able to go to sleep.

At the moment I'm sleeping quite well, but I am sure that will regress in the third trimester. Mostly because getting comfortable becomes a problem.