Being part of the British Commonwealth, with common law as a basis, we can look at other parliamentary systems for precedent as well. The Australian parliament had a similar event where their governor general removed the prime minister and asked the opposition to attempt to form government before dissolution of parliament.
https://en.wikipedia.org/wiki/1975_A...utional_crisis
It has a little bit of a different origin and resolution, but it is another case study to determine the legalities.