Tesco has apologised to shoppers after a “do not eat” warning was issued to customers at the supermarket giant.