What is making the loss of overguard is apparently melee attacking.
I tested with both an unmmoded helios prime and unmodded adarza kavat and the only moment they lost their overguard was when i used a melee weapon.
Here is a really bad video of the test: