Not need to withdraw the I-485. Even if is the pending I-485 denied, your approved I-140 is still valid and thus, you can file a new I-485 again in US or apply for the immigration via outside US later.