Cavalry keeps bunching up

Idk if it's meant to be like this but my party is all banner knights and whenever I have them charge at infantry they stop in the middle of thier formation and bunch up so they die cuz they're surrounded but when I get knocked out then suddenly my cavalry uses thier brains and charges through them over and over instead of stopping there and bunching up. Is there a way to solve this?