it's called a food borne allergy, it occurs when you eat a certain food in large amounts everyday and use it as your sole source of a certain nutrient, it's more common in proteins, but i've seen it happen a few times when a bodybuilder for example eats only eggs and egg whites to cut for 6-8 weeks, then will start getting sick when eating the eggs and will have to stop eating them for a while