Try drinking water before bed. I had to to keep cramping at night at bay.
I'm 35 weeks and get horrible cramps around night time. Feels almost like those terrible period cramps. I've gone to the doctors plenty of times thinking its labor but you can start having contractions this early it's normal. It could also just be normal pregnancy pains with everything stretching and the baby kicking.