that horse thinks he is the leader, not you. He needs ground work and basic leadership training.
I am not an expert, but the last thing you ever want to do is reward a horse for acting a fool, by aborting the ride that is exactly what you have done.
Never let a horse get away with that. If it wasnt safe to ride I woulda made him walk the trail with me on the ground leading,
Take him again tie him to the trailer, if he acts up untie him lunge him in a circle till his tounge hangs out, left right, back up, left right.
Retie him to the trailer, he acts up untie repeat. he'll get the hint real fast.
Get out on the trail, if he bats an eye at another, horse, work him, back up, forawrd, fast circles, figure 8's around trees, back on trail at a walk, at forst sign of agression, repeat, spin him in circles, or back him up, I like figure 8's around trees, anything that makes his feet move and makes him think. Do it every single time, you have to do it every time at the first ear pinning, or turn and snap,