If the creature Aspect of Lamprey would enchant is an illegal target by the time the Aura spell resolves, the entire spell doesn't resolve. It won't enter the battlefield, so its ability won't trigger.

Artwork
Loading artwork…
Aspect of Lamprey
Theros Beyond Death · #85 · EN
Nonfoil—Foil—
Card rules
Enchant creature you control
When this Aura enters, target opponent discards two cards.
Enchanted creature has lifelink.
"Some aspire to be mighty like the lion or the hydra. I am the parasite that feeds on them all."
Common · Illustrated by Deruchenko Alexander
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Pioneer Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Multiple instances of lifelink on the same creature are redundant.