the correct term is "neutering". not "spaying". spaying is for girls, neutering is for boys.

If your dog is experiencing so much pain and going through emergency vets due to this, by all means NEUTER HIM!! Is having puppies truly more important to you than your dogs wellbeing? Seriously. this could easily be cancer-related, or an inherited problem, which would then be passed on to his offspring if you did breed him! He might also be unable to breed, or it may be painful to him. Just do what is in the best interest of your dog, and the complete overpopulation of dogs in this country, and neuter him.

I also cannot imagine you are very familiar, experience, or knowledgable about dog breeding if you mix up the term "spaying" with "neutering". they are two completely different procedures . Only people who have dedicated much of their lives to IMPROVING their breed of dog should breed, and only people who are educated on the issues/problems/costs/sacrifices/risks involved with breeding dogs should ever keep an intact male or female.