With errors in splitting heroes, it can be reproduced, as I wrote about, here's an example with a save file. Splitting with Clavius against buffed harpies, the error occurs whether you immediately agree to retreat or enter the battle and retreat from the battlefield.
Of course, it will be reproducible in the save file. But how would I reproduce this error without a save file?
This is a script error related to the bug fix for reducing guard values with a buffed stack.
I'm not the author, so I'm unlikely to investigate it. Unless I disable the script when the checkbox for a buffed stack is enabled.