Hello and welcome to HCM.
Thank you for your query.
From your presentation, and description it does seem like a primary gastrointestinal tract issue, but we cannot be sure without an elaborate evaluation.
The reason for stating this is that, many patients with primary gastrointestinal problems have an increased urge to urinate due to pressure from the GIT, that causes a sensation of a full bladder and thus the urge to pass urine. Needs to be confirmed with investigations of course.
The possible conditions that could be causing this presentation in you are:
-Irritable bowel syndrome
-Intolerance to certain foods (lactose or gluten
); possibly even something you are consuming before going to bed
-Other chronic conditions of the GIT
In my opinion you should visit a doctor for an elaborate examination and diagnosis. This will greatly help in realizing the treatment approach.
I hope I have succeeded in providing the information you were looking for. Please feel free to write back to me for any further clarifications. I would gladly help you.