Your approved I-140 will be always valid even if your I-485 is denied. So, you can re-file an i-485 if you find a job after your I-485 denied.