The target priorities are making it try to aim at the tanks behind it. I don't think there is an easy way we devs can fix it. Players can fix it by changing the target priorities by using ui mods, the "prioritize unit type" hotkey, or right click the attack order button to enable snipe priorities (acu is at the top in that priority list).