Merge pull request #18576 from deepeshgarg007/taxes_and_totals_v12

fix: Error handling in taxes and totals