Unable to Enable “Has Expiry Date” After Stock Transactions

I have an item with Batch tracking enabled and existing stock transactions. When I try to enable Has Expiry Date and save, the system automatically unchecks this option and does not allow it to be enabled.