OAB urine leakage in sex

Sometimes when I get a blowjob or a hand job from a partner instead of semen , urine comes out. It is 100% urine. Doctors tell me I have an overactive bladder but don't know why. I've been given solifecanin as of the other day but really hesitant about taking it . Can an OAB cause such issues ?