It is fascinating how many people these days claim to have "nearly died" of some allergy. The numbers tell a different story, namely that they in almost all cases do not die. An allergic reaction can give you an experience that feels like dying, but is nowhere near that. Otherwise, death from allergies would be a common cause. It is not.
Here are some prime quotes from Wikipedia: "Currently, anaphylaxis leads to 500–1,000 deaths per year (2.4 per million) in the United States, 20 deaths per year in the United Kingdom (0.33 per million), and 15 deaths per year in Australia (0.64 per million)." and "Death from anaphylaxis is most commonly triggered by medications.".
These death rates are so low as to be irrelevant and most are not caused by food.