Hmm, I can't say for sure but I know in the past I've had kind of similar issues that seemed to be around the same time I'm going through spells of especially bad anxiety, and felt the 2 were somehow related.
At different times I used to be unable to...start urinating? even when I felt the need to (I know there's a better way to put that, but can't think of it right now ha). I assumed it had something to do with muscles just because of how constantly tense I was. Maybe it could be something like that? Although I'd also still consider more tests if possible, just to be safe.