I had the same trouble with a house vacuum that I had. Every once in awhile I would make contact with the hose, and WHAP! It is REALLY annoying. I had a metal link dog collar hanging from it dragging on the floor, but that only helped a little bit. I ended up getting a new vacuum.
The metal wire might work better if it was making a very solid contact with the ground, or the body of the vacuum on the ground. When it is on a rubber mat, it is insulated and the charge will go to the path of least resistance. Try to make sure that that path ISN'T the horse... Maybe put horse on mats, you and vac body on dirt or concrete. That is a really sucky problem for a horse vac to have.... I would definitely let them know it.
Sorta related, I hate when I get zapped at the store because of the static generated by the cart wheels. I have to touch the cardboard boxes or something not metal or plastic every few feet. People look at me funny, like I am Mrs Monk or something