Beagle incontinence

So my 1 and a half year old female beagle has a bathroom problem that I can’t figure out. So she was peeing almost ever 1-2 hours sometime inside, but always by the back door, And sometime she would go more often than that. I had a water jug so that they had constant access to water, but I took that away thinking that she may just be drinking too much. But then I worry that my lab is not getting enough water. She is no longer having accidents during the day while running freely now that we have cut back water and I am letting her out more often. So now the problem is at night. She can’t seem to make it through the night without having at least one accident, we let them out right before bed too. What I find odd about everything is that I know she can hold it for 8+ hours because she is crate trained and can spend a whole day in her crate when we are away without having an accident in the crate, she has never had an accident in her crate. Some nights she doesn’t have any accidents, but nights that she is really restless and is on and off the bed I tend to find little piddle spots (not big spots like she is expelling her whole bladder just smaller spots). We got her spayed when she was about 4 months old and after some reading I’m afraid it may be linked to that. I was just wondering if anyone has experienced this before and how they handled it?

Found here