so, you should avoid punishing for toilet behavior in the house. it sounds like she really just doesn’t know the rules yet.
these two links are pretty similar and i’d read both. they should help.
https://lookaside.fbsbx.com/file/How_to_Housetrain_Any_Dog%20(1).pdf?token=AWzFzr8QX0C6GNFaOKVxlOKyjHpjo4l1GKKLvup9PqoNRBewfhYcPaW8epVfl7TD-hzvF2V2XyFxKavjepjUKq75rqsQH7ckQTKV-VOq-pItBQ
remember, be consistent. good luck. housebreaking is the biggest pain in the butt regardless of the age of the dog.
please neuter him. that’s the answer to your problem – neuter him. he doesn’t need to breed, and if he is UNABLE to breed, then he should be neutered to ensure he has a happy life.
Since he’s unable to breed you might as well get him neutered. He will be a much less frustrated dog. An intact dog smells a female in heat and if he can’t get to her or is unsuccessful in his attempts it causes anxiety and frustration. It’s cruel for him to spend his whole life that way. I don’t believe there is a solution to his problem, so neutering is the kindest thing you can do for him.
Debra and Laura are correct, a dog with conditions such as this should NOT be bred. This dog obviously has underlying conditions that are undesirable in future generations! Have him neutered and enjoy his companionship.