You may want to get a second medical opinion to be double sure that sleep is the only issue.
You can look up Urologists in your area through your insurance plan or see a wide variety at
https://www.vitals.com//urologists
There is something called "alarm therapy" that can be successful at retraining your sleep patterns if you are patient. See:
Bedwetting is also called sleep enuresis. It is a parasomnia. Bedwetting occurs when a person urinates by accident in his or her sleep.
sleepeducation.org
It can take 6 months or more so it takes discipline, but this can work...I've seen it personally. Basically, you wear special underwear with sensors that will trigger the alarm so you get up at the first drop of wetness. Sometimes at the beginning, if you are such a deep sleeper, it will require a family member to sleep nearby to get you up when the alarm sounds, but over time you will be able to do it yourself.
The more "accidents" you have, the quicker your brain gets retrained to be in lighter sleep at that time of night and eventually normal REM sleep can be the result.
There are therapists and doctors that are experts in this and can act as a coach for you to help you track your progress and help adjust your process as you go. It will be frustrating at times, especially if you don't have events when wearing the sensors and you'll want to give up, but a coach can help keep you motivated.
Sleep induced enuresis is a big problem right now and seems to be growing as middle school and high school age children are not able to get to sleep at decent hour due to social pressures of school, social media and homework due at midnight. You're lucky if you know this is likely caused by sleep issue. Many people are told this is anxiety induced and the sleep issue is not studied.
While enuresis can cause anxiety, it's not often the other way around and it's worth seeing multiple doctors to determine if there is a medical cause, including sleep.