No Inherent Tendency
Pit bulls do not inherently attack horses. Aggression depends on socialization, training, management, prey drive, and individual temperament.
Prevention
Socialize dogs with horses, use leashes, separate animals when unsupervised, and learn to read body language.