The symptoms are suggestive of stress or urge incontinence. I’ll suggest consulting a urologist for the same and getting the uroflowmetry test done which actually tests the emptying of the urinary bladder. There are drugs to take care of incontinence like oxybutinin but this needs to be taken only after consulting a urologist. I sincerely hope that helps. Take care.
Hope it helps. Take care and regards.