If it happens to you once in a while, you might have taken too much water before going to bed, then avoid drinking water then. If it happens once in a month, it is probably days before your period, then don't worry, this will disappear during your period gradually; if it happens regularly, you must have taken too much salt ususally, then start to eat less salt.
Hope it helps!