Talk to your kid, if it’s new due to the divorce it should self resolve with whatever therapy he is in. Now if it’s always been like this then talk to the doctor his body maybe not be generating the hormone.
https://www.kidney.org/medications-to-treat-bed-wetting