If the creature you control is an illegal target as Primal Might tries to resolve, no creature gets +X/+X. If that creature is a legal target but the creature you don't control isn't, it still gets +X/+X.

Artwork
Loading artwork…
Primal Might
Secrets of Strixhaven Commander · #283 · EN
Nonfoil—Foil—
Card rules
Target creature you control gets +X/+X until end of turn. Then it fights up to one target creature you don't control. (Each deals damage equal to its power to the other.)
The shaman looked at the world through Ghalta's eyes and understood that everything else was his prey.
Rare · Illustrated by Randy Vargas
Format legality
Alchemy Legal
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Future Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Standard Legal
Standard Brawl Legal
Timeless Legal
Tlr Legal
Vintage Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
PreDH Not Legal
Premodern Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If you choose two target creatures and either target is an illegal target as Primal Might tries to resolve, neither creature will deal or be dealt damage.
You can cast Primal Might targeting only the creature you control.
You can cast Primal Might with 0 as the value of X to just have the two target creatures fight.