Except the cure is potentially worse than the disease.
For years here on Army.ca I have read many comments about how MPs put Party in front of Constituency. And how bad that is for democracy. And how much sway Party has and that MPs are trained seals.
Yet, an MP crossing the floor (in either direction: opposition to govt or govt to opposition), potentially could be putting constituents first and is the very definition of not being a trained seal. I say: let the constituents of the affected riding decide that for themselves at the next election if Party affiliation or voting record on the actual issues are more important to them.
By passing some sort of law requiring a byelection in the event of a floor crossing you are potentially removing a safety valve in Parliament and basically codifying that Party is more important than the individual MP (ie- you must dance with the one that brung ya). That, to me, is really dangerous. A really craven PM, because they control the timing of any by-election within a 6 month window, could weaponize this and neuter the Parliamentary Opposition.
In short, I am advocating for treating MPs and voters like adults.