If the target creature is an illegal target as Sin's last ability tries to resolve, it won't resolve and none of its effects will happen. Sin will remain in the zone it went to when it died (which is usually the graveyard).

Artwork
Loading artwork…
Sin, Unending Cataclysm
Final Fantasy Commander · #95 · EN
Nonfoil—Foil—
Card rules
Flying, trample
As Sin enters, remove all counters from any number of artifacts, creatures, and enchantments. Sin enters with X +1/+1 counters on it, where X is twice the number of counters removed this way.
When Sin dies, put its counters on target creature you control, then shuffle this card into its owner's library.
5/5
Rare · Illustrated by Aldo Domínguez
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
PreDH 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
Sin's last ability puts all counters that were on Sin onto the target creature, not just its +1/+1 counters.
Sin's last ability doesn't cause you to move counters from Sin onto the target creature. Rather, you put the same number of each kind of counter Sin had when it died onto the target creature.
In some unusual cases, you may end up putting the appropriate counters on more than one permanent. For example, if you control The Ozolith ("Whenever a creature you control leaves the battlefield, if it had counters on it, put those counters on The Ozolith.") when Sin's last ability resolves, you'll put the appropriate number of each kind of counter onto both The Ozolith and the target creature.