It is simple. No long rest at unsafe areas. Plus, no long rest right after another unless certain amount of time passes but it is not possible for this game because the time passing is tightly bound to long rests at the camp in here.
So there is just one option left as I wrote above. No long rest at unsafe areas. That's it. You wanna long rest after every encounter before clearing out the whole area, then you have to run to the last safe area then teleport to your precious camp. Or, you try to learn thinking about long term fighting strategies, magic economy and your party setup ( sadly I don't think there will be fully customizable party in this game tho ) before going head first into battles. That's where the fun is. Not mindless slaying monsters as if it is an MMO...
And yes, minor random encounters at camp is a must.