Unlikely. There are no laws pertaining to resigning from a job and returning home. As long as you don’t violate the conditions of your TRV or WP, you’ve done nothing wrong.
My best guess (and others can correct me) is if you do return to Canada, you shouldn’t be referencing the work permit as the reason for entry. That could be implied as misrepresentation (you don’t have that job anymore). The TRV should allow you entry as a visitor (so you need to convince them that is your intent). There are no laws against looking for work while on a visitor visa, but the onus is on you to convince CBSA you are a bonafide visitor.
My best guess (and others can correct me) is if you do return to Canada, you shouldn’t be referencing the work permit as the reason for entry. That could be implied as misrepresentation (you don’t have that job anymore). The TRV should allow you entry as a visitor (so you need to convince them that is your intent). There are no laws against looking for work while on a visitor visa, but the onus is on you to convince CBSA you are a bonafide visitor.