Give me an example of a test team in history that played 4 or 5 tests in two years and then went on to win test matches consistently. Forget Pakistan, even teams like Australia and South Africa w’d struggle if they played just a handful of tests over that sort of period. So one has to be realistic too
T20 is a different format altogether. You may not play any cricket for a while and still do well in T20 - as Pakistan proved recently - because the game is not long enough to test your true skills and character. But you simply cannot play no cricket and then expect to do well in test cricket. In test matches you have to play consistently well over 15 sessions. One bad session can cost you the game as happened with Pakistan in the first two tests
Ofcourse there are other reasons too - psychological, problematic openers, player politics if true etc.