The liquidation looks to have been due to expiration risk. With one put in the money and being assigned and the other options lapsing you would have been on the hook for purchasing shares at a magnitude of nearly 50x your NLV.
Perhaps the algo should know better to liquidate the entire position? Perhaps the people coding that algo should know when one leg is liquidated, the whole position should be? Perhaps, some attempt at communicating with the account holder might help? I completely understand IB's need for protecting it's own well being. But given that all powers rest with IB, how is it okay to completely disregard the account holders interest and well being?