Is the I-140 approved yet? If yes, your I-485 will be OK as long as you can find a new job and ask the new employer to send a letter to USCIS based on AC21. If the I-140 has not been approved, you have to do the green card application again from the beginning.