Seems like you are using an external credit card solution. So you should enable the prevent cashier overtendering option for this tender.
You can do this by opening the properties box for the tender and checking the "prevent cashier overtending" option. This will then not allow the cashier to tender for more than the check total amount due.