There is no evidence that if your do residency your NIW will get rejected. I had similar situation and asked a prestige lawyer, he said that you can switch to medical field. YOu don't even have to have a job to NIW. You can do your research even at your basement..