Eye irritation. Your description sounds like eye irritation which can occur during sleep. Try artificial tears, ointment at night and warm compresses. If no improvement, see an eye doctor. It is likely unrelated to your urination.
More info? Only at night? Dark urine? Foul smelling? If your male, poor aim?