How can I alter bundles of commerce_order_item entity type using custom module
add_to_cart_confirmation needs to be a a defined entity form mode, that's most likely the error in your case. Provide it as default configuration in your module or check its existence or create it if necessary.

See how node defines the teaser view mode as an example, or user the register form mode.