OAB sucks. I've been dealing with it (mixed with interstitial cystitis) for twenty years or more now.
The good thing is that there are quite a few meds that can help, as well as pelvic PT and some other stuff. The bad thing is that many of the treatments come with side effects, and none of the treatments are that reliable about working well for most people. It's common to have to try multiple things to find something that works, and it's also common to have it not do as much as you might like even if it does help.
There is a wise variety of meds (oxybutynine, hyoscyamine, hydroxyzine, mibegrigone, amitryptiline, and others - I've probably misspelt most of those!). You can try PTNS (Anklestim), which is an electrical stimulation of a nerve in your ankle done in a doctor's office over multiple sessions; Interstim, which is surgically implanted in your back; physical therapy; and lifestyle changes. Most doctors generally start with less invasive and proceed to more invasive, which seems wise to me.
Meanwhile, the enormous market for absorbent products demonstrates the limitations of treatment. I take multiple meds daily, which help with the pain and discomfort, but I still end up wearing absorbent briefs (adult diapers, for those who prefer to be plain-spoken). Fortunately there are many good options, and they're much more discreet than most people realize.
It takes time, patience, and persistence, but there's an excellent chance that you can find a combination of treatments and coping strategies that will let you get in with your life with minimal impact from OAB.