If the caster falls, the spell ends once the caster is no longer in the original area.
While the linked questions have some debate about whether or not the dome moves with its surroundings, the text is clear that if the caster moves out of the original "stationary" position, then the spell will end:
The spell ends if you leave its area.
Therefore, as formulated in your question, the hut would have disappeared once the original caster was no longer in that space.
I agree with the linked answers that there is no clear definition of "stationary," which leaves the crux of your question up to a DM's judgment call. As a DM, I would have ruled that the hut does not fall because there seems to be a clear "stationary" reference frame based on your description of the fight: the rest of the environment that isn't moving. It's worth noting that the range of the spell is "self," and since the hut obviously doesn't move with the caster, the location of the hut is where the caster was at the moment the spell was cast.
While other DMs could reasonably rule otherwise, it opens up a lot of judgment calls--how big does the piece of moving ground have to be? If the caster digs up the ground and moves it around, could they move their hut? In this case, where you're on solid ground, it seems easier to say that it doesn't move at all.
Leomund's Tiny Hut has a floor
However, the scenario in your question could have only happened if the players willingly fell out of the hut, because Jeremy Crawford tweeted that the intent is that it has a floor to stand on:
Leomund's tiny hut does have a floor, Mr. Crawford (read your own book). The spell's range entry says the effect is hemispherical.
Thus, even though the ground fell out from under you, you could have still stood on the floor of the hut.
As for balance concerns, many Big Bads often have some way of dispelling magic. Leomund's Tiny Hut, a 3rd level spell, would be automatically dispelled. If the gargantuan attacker were only a physical attacker, it could have simply left and waited out the spell's duration out of range of your attacks--you can't pursue it, after all, without leaving the protection of the hut.
You Cannot Teleport Into the Tiny Hut
A key, though subtle point to this opinion is a statement on Range in the PHB (203)
Once a spell is cast, its effects aren’t limited by its range, unless the spell’s description says otherwise.
The suggestion is that during and before spell casting the spell's effects are limited by range.
Jeremy Crawford weighs in on this issue here, specifically in this tweet:
The indigo layer of prismatic wall prevents you from casting spells through it. This doesn't stop a spell with a range of self, such as misty step, but it does stop dimension door, which has a range of 500 ft.
and Leomund's Tiny Hut (PHB 254):
Spells and other magical effects can’t extend through the dome or be cast through it.
Because of it's range of 500 ft, casting Dimension Door to teleport into the Tiny Hut would involve casting the spell through the dome and cannot be done.
Best Answer
The Leomund's tiny hut stops catapult in both directions
Leomund's tiny hut states:
Catapult states:
This is a moot point in catapult's case, but if an object was inside the dome when you cast Leomund's tiny hut, then that object can move freely through said dome, as stated: