Drink water and change positions. Like if you have them while you're up, lay down. And if you have them when you're laying down, get up and walk around
You need to drink more water and rest. Empty your bladder often as well.
they shouldn't be seriously painful... where are you having them..