CA really just should have made it an attribute of cavalry units that they will get spooked when charging spears, and will have a high probabilty of simply turning around and refusing orders. only the most elite cavalry would have some amount of immunity to this.