If the targeted creature is an illegal target by the time Flesh Allergy resolves, the spell doesn't resolve. No player will lose life.

Artwork
Loading artwork…
Flesh Allergy
Scars of Mirrodin · #62 · EN
Nonfoil—Foil—
Card rules
As an additional cost to cast this spell, sacrifice a creature.
Destroy target creature. Its controller loses life equal to the number of creatures that died this turn.
Uncommon · Illustrated by Vance Kovacs
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
PreDH Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Pioneer Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
You can target a creature you control, then sacrifice that creature to pay the additional cost. However, if you do, Flesh Allergy won't resolve for having an illegal target. You won't lose any life.
Flesh Allergy counts each creature put into a graveyard from the battlefield that turn, including token creatures, the creature sacrificed to cast the spell, and the targeted creature (if it is destroyed).
You must sacrifice exactly one creature to cast this spell; you cannot cast it without sacrificing a creature, and you cannot sacrifice additional creatures.
Players can only respond once this spell has been cast and all its costs have been paid. No one can try to destroy the creature you sacrificed to prevent you from casting this spell.
If Flesh Allergy resolves but the targeted creature is not destroyed (because it has indestructible or enchanted by an Aura with umbra armor, for example), its controller will still lose life.