No stupid rest restriction systems because they will end up doing more harm than good.
The proposed idea is not only complicated but also has a lot of fundamental problems.
What if the player is massacred by bad rng?
Then the only option is to load the game because it will not be able to continue the game. What if the player has only difficult fights that he cannot pass without rest?
The proposed system is very simple to soft lock.