It will not affect your 140 after you file your NIW, but it will affect your 485. Because NIW shows your job is important. However, if you do not get job, how can it approve that your majoy or job is so important for America. But if it is short gap, it will be ok