You divide the damage as you cast Conflagrate, not as it resolves. Each target must be assigned at least 1 damage. You can't choose more than X targets and assign 0 damage to a target.
Conflagrate
If a card with flashback is put into your graveyard during your turn, you can cast it if it's legal to do so before any other player can take any actions.
If some of the targets become illegal for Conflagrate, the original division of damage still applies, but the damage that would have been dealt to illegal targets isn't dealt at all.
Magic: The Gathering · ™ & © Wizards of the Coast · Illus. Warren Mahy
Card data via Scryfall. Rarix is fan-made; not endorsed by the rights holders.
