Awful night time contractions

I’m 37 weeks and for the past couple weeks I have been having the worst contractions at night time. They never lead to anything, but they hurt so bad and are so uncomfortable. Is there anything I can do to help ease them?