My lawyer said it is no problem at all. His opinion is
if you can leave the job while your I-485 still pending, what else problem could possible have? He is a very good and famous immigration lawyer, and I believe him. Of couse, it is solid your owen choice.