I think it’s easy to underestimate the amount of insects that humans have eaten in various times and places. I had a friend who was an entomologist, and she was full of examples that alas don’t come to mind at present. Insect consumption has been noted in situations of scarcity right up to that US pilot who was shot down in Bosnia a few years back
The human line, going back to the pre-mammal tenrecs has had a lot of insectivory. I can’t think of a single primate (other than Man) that doesn’t eat some insects as a protein supplement, whether they are labeled herbivores, carnivores or omnivores.
There are two big changes in humans, versus all other primates, that together gave us by far a wide range than any of our relatives:
Culture: the transmission of acquired knowledge is a valuable adaptive skill, but it’s also led to some maladaptive choices at various times and places. Humans tend to treat their mental conceptions as ‘more real than real.’ I’m sure many people have starved without thinking of insects as potential food, or simply been unable to bring themselves to overcome cultural bias. It’s actually quite common for humans to die for cultural bias - think of wars. In a similar vein, this is why some military survival training includes the actual eating of insects: just telling soldiers that they ar potential food isn’t enough
Technologies: like agriculture and adaptable hunting tools, mean we may not have to resort to low yield insects very often. High-yield insect stores like colonies [e.g. bees, termites, ants] and cultivatable insects [mealworms and grubs] are still used by some cultures as food. Even we us e.g. mealworms are more often used as animal feed.
As a pragmatic matter, famine usually has a reason: draught, natural disaster, etc. By the time, we’ve exhausted our preferred food supplies, large or accessible insects probably aren’t very doing very well either, and would quickly be cleaned out. Insects can be notoriously ‘hungry’ in many life phases: the maggots eating a human corpse may only mass a kilogram or less.
This appetizing image leads to another problem: unfamiliar foods mean less familiarity with the required food technology. I have a long essay on how “food” isn’t just a substance, but often a composite of materials and technology. Worldwide staples like manioc (aka cassava and tapioca) can be poisonous unless properly prepared. Many local diets must be prepared in certain ways to make them nutritious enough to sustain life. (Natives of south/central Mexico laboriously ground their maize on lime millstones, even for their livestock, because the lime released essential tryptophan and niacin that neither man nor pig could otherwise absorb.) Eating unfamiliar insects could hurry as many fatalities as it delayed. Corpse maggots, for example, might contain many human pathogens.