Watch your weight to make OAB less likely to occur; being in the top third of body mass index range increases your risk. You can also take these steps to eliminate or prevent OAB:
Most likely it’s overactive bladder (OAB). It occurs when the muscles of the bladder involuntarily contract, making the urge to urinate more frequent than normal. There’s a dry and wet version: If you can make it to the bathroom in time, that’s dry (or stress incontinence); if you have any leakage, that’s wet (or urge incontinence).
Do Kegel exercises, which, because of their neighborliness, are good for both urination and intimacy!
Limit your fluid intake before bedtime
Go to the bathroom twice before bedtime
Avoid caffeine, alcohol, citrus juices, and carbonated beverages