That's the "Keep Discounts In Sync With Order Edits" setting working as designed. When an edit means the order no longer meets a code's requirements, PDQ removes the code so the customer doesn't keep a discount they no longer qualify for.
What to do: open Retain → Post Purchase → Settings → Discount Code Settings.
Leave it on to keep discounts accurate; turn it off to lock discounts after checkout.
