Solutions: Brain-training for focus; food for riding.
Effective riding requires concentration, and concentration takes practice. See how long you can keep your focus, then strive to extend it. Bonus: This improves your horse’s concentration skill as well.
Practice extending the amount of time you can concentrate. The more you practice, the better your focusing skill will become.