What do you mean by meet both conditions? Minors don't have physical presence requirements.
We got PR in 2020 but didn't move to Canada until 2022, so were outside for more than 2 years but have not been outside Canada for more than 2 years in the past 5 years.
So, not sure whether to answer...