Should have cloned tuvix in the transporter then split the older one.
Or should have sedated tuvix so a unique personality couldn't manifest in the time before the doctor could design a cure.
But it's easy looking back with hindsight, when you're there and it's actually happening you don't have the luxury of time to think of the most perfect solution.