This is incorrect!
You must remain a PR in good standing until the oath of citizenship.
https://www.canada.ca/en/immigration-refugees-citizenship/services/canadian-citizenship/become-canadian-citizen/after-apply-next-steps.html
"After we approve your application, you may not be able to take the Oath and become a citizen if you:
lose permanent resident status
have been asked by Canadian officials to leave Canada (removal order)"
So if you are out of your Residency obligation and you PR status is put into question, your citizenship application will be put on hold until your PR status is fine. If the applicant is below 2/5 years, they will lose their PR status and therefore also the right to obtain citizenship.
This also answers your question in your last post.