Larian is the DM. It's their responsibility to balance it. They can limit it in various ways. Have mechanics that evaluate character level and dumb down hag stats based on character level, for example. Or allow players to recruit masked adventurers to aid them in the fight, but only if game assesses the players has used 50% of spell slots or are not fully level synced or hp is low. So restrict Long Rest, but offer other solutions.
So instead of killing off the masked adventurers, if you reduce to 0 HP or whatever, they are just defeated, not killed. You can remove their masks and gain their help in the upcoming fight.
Stuff like this can be fairly easily done.
You write as if it were to be simple and I guarantee that it is not.
The number of possibilities that such a system would have to take into account is large. Remember that there will be dozens of fights in the game.
I'm not saying that it is completely impossible, but you should consider whether the potential profit justifies the high costs that would certainly be required.
The current system, despite its disadvantages, is quite an effective solution of the problem.
What mainly requires modification is the management of events in the camp that should be completely redone.