Almost 1 million pills recalled over contamination