Fix an asan error where NumElements > 32 for at least one case in