I would try keeping the puppy away from the goats until it's healthy & comfortable with his or her new home, then it should have more confidence to run & play with the goats & avoid being violated by the goats. My friend is a professional dog trainer I can ask for her advice if need be.