Handle overflow in the amount parser