Yes, you must continue to live in Canada for 2 out of every 5 ROLLING years to meet the PR residency obligation while you wait for your citizenship application to be processed.
The expiry date on your PR card is irrelevant. It doesn't matter at all.
So from Feb 2019, it was mandatory that...