This issue can be readily resolved in practice by first determining conditions such as base pressure, deposition rate, and target-to-substrate distance that can produce high-quality Nb.
This then can serve as the starting point for developing NbN with reasonable assurance that gas impurities will have limited effect.