GandivaException: offsets buffer too small for _split_expr0 minimum required 15980 actual 15880

We are getting below Gandiva exception for one of our query which has few cast and round functions applied on few columns.

Looks like issue comes because of some data. But

Is there any way to find/update the configuration set for the buffer size? How to avoid these kind of errors?

Below is the trace:
(org.apache.arrow.gandiva.exceptions.GandivaException) offsets buffer too small for _split_expr0 minimum required 15980 actual 15880
org.apache.arrow.gandiva.evaluator.JniWrapper.evaluateProjector():-2
org.apache.arrow.gandiva.evaluator.Projector.evaluate():271
org.apache.arrow.gandiva.evaluator.Projector.evaluate():162
com.dremio.sabot.op.llvm.NativeProjector.execute():75
com.dremio.sabot.op.llvm.NativeProjectorBuilder$1.evaluate():80
com.dremio.exec.expr.SplitStageExecutor.evaluateProjector():303
com.dremio.exec.expr.ExpressionSplitter.projectRecords():420
com.dremio.sabot.op.project.ProjectOperator.outputData():217
com.dremio.sabot.driver.SmartOp$SmartSingleInput.outputData():188
com.dremio.sabot.driver.StraightPipe.pump():56
com.dremio.sabot.driver.Pipeline.doPump():109
com.dremio.sabot.driver.Pipeline.pumpOnce():99
com.dremio.sabot.exec.fragment.FragmentExecutor$DoAsPumper.run():328
com.dremio.sabot.exec.fragment.FragmentExecutor$DoAsPumper.run():324
java.security.AccessController.doPrivileged():-2
javax.security.auth.Subject.doAs():422