Error message in checkout step
That error most commonly occurs if an order is being double-saved, by calling $order->save() within a hook_entity_presave() or a matching event, including pre/post transition events.

If you need to modify the order during a state transition, do it in a pre-transition event and let the system take care of the rest.