Thanks for your query.Based on the facts that you have posted it appears that your husband has bed wetting
yesterday and has pain in his groin since last 6 months.
A single episode of bed wetting has no significance and can be due to anxiety or sleep apnea
Please consult qualified Psychiatrist
and to learn how to allay anxiety.
You can help him by boosting his confidence and avoiding clashes or discussion over marriage infidility that he has agreed for.