Yes, this happens alot. A few things I do to combat it are:
1) Try to get to bed as early as possible. If I go to bed around 9pm or so, I'll usually log about 5 or 6 hours of sleep before I inevitably wake up in a panic. When I go to bed later, I usually only log 3 or 4 before waking up.
2) I don't like this at all, but sometimes I will take half an ambien to put me back to sleep. I don't like sleeping meds, but I have a job and have to function which requires a good night's sleep.
3) Meditation or yoga helps alot before bed too. Sometimes will keep me from waking up at all.
Hope you feel better soon!
Diagnosed Ulcerative Pancolitis