[PATCH 6.4 042/227] accel/qaic: Add consistent integer overflow checks