If some of the targets become illegal for Ravenous Gigantotherium's ability, the original division of damage still applies, but the damage that would have been dealt to illegal targets isn't dealt at all.