Popular snack bars often found in children’s lunchboxes have been stripped from supermarket shelves over fears they could cause illness or injury if consumed.