Remove invalid vector item heap alloc

Fixes #3986
2 files changed