If the target creature is an illegal target as Heated Argument tries to resolve, it won't resolve and none of its effects will happen. You won't be able to exile any cards from your graveyard, and no player will be dealt damage.

Artwork
Loading artwork…
Heated Argument
Secrets of Strixhaven · #118 · EN
Nonfoil—Foil—
Card rules
Heated Argument deals 6 damage to target creature. You may exile a card from your graveyard. If you do, Heated Argument also deals 2 damage to that creature's controller.
"I don't want to hurt you, Ajani, but whatever Jace is planning needs to be stopped!"
Common · Illustrated by Aleksi Briclot
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
Pauper Legal
Pauper Commander Legal
Penny Legal
Pioneer Legal
Standard Legal
Standard Brawl Legal
Timeless Legal
Vintage Legal
Old School Not Legal
PreDH Not Legal
Premodern Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions