Not a big deal. The number of years of separation is something Congress pulled out of their magic hat.
If this law is even constitutional (I don’t know if it is), we don’t need it.
This is not some third world country where there are military coups. Who is more qualified to be SecDef than a recent former General?
The Senate can of course reject any nominee for any reason, why do we need anything more than that?