The pharmacist and the company can both be liable, once all is said and done.
Yes, there is malpractice insurance for pharmacists. I pay $144 a year for a $1M/3M policy, and have for almost 20 years. Never been sued, can't think of anyone who has, but do know someone who did and won. All he wanted was an apology and the deductible for the resulting hospitalization paid, as well as his lost wages (he's an independent contractor with a high deductible policy) and that's what he got.
The biggest trouble a pharmacist could potentially get into would be either a jail sentence or revocation of their license, but either one is unlikely for a legitimate mistake unless there's more to the story.
The company would probably face a big monetary fine, and censure from the state board.
Hope that helps.