It seems to me that the accidents happen in general because of anxiety, and the frequently urination because of fear related territorial marking.
So in general we are looking at it fearful, dog with anxieties.
Is this your own dog or a foster?
#PetBehaviorandTraining