If an effect causes Accursed Witch to transform on the battlefield, rather than leaving it and returning transformed, then Infectious Curse doesn't become attached to any player and is put into your graveyard. This won't cause abilities that trigger when a creature leaves the battlefield to trigger.

Artwork
Loading artwork…
Accursed Witch // Infectious Curse
Shadows over Innistrad · #97 · EN
Nonfoil—Foil—
Card rules
Accursed Witch
3Creature — Human Shaman
Spells your opponents cast that target this creature cost 1 less to cast.
When this creature dies, return it to the battlefield transformed under your control attached to target opponent.
4/2
Infectious Curse
Enchantment — Aura Curse
Enchant player
Spells you cast that target enchanted player cost 1 less to cast.
At the beginning of enchanted player's upkeep, that player loses 1 life and you gain 1 life.
Uncommon · Illustrated by Wesley Burt
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pioneer Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander 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
Accursed Witch's first ability affects all spells cast by your opponents that target it, including Aura spells and spells that have additional targets. It doesn't affect abilities.
Infectious Curse's middle ability affects all spells you cast that target the enchanted player, including Aura spells and spells that have additional targets. It doesn't affect abilities.