add overflow check during gpupreagg_aggcalc