Scan_all: Ensure realloc succeeds before raising size_viruses