Why am I getting a warning message at checkout after applying a discount?

Getting a warning message on checkout when the cart amount is updated.

This happens when I apply a discount using the query parameters. Also, there is one Shopify checkout script is running for hiding express Shipping method based on products (Not on cart value).