TiN is a very stable compound (i.e. very low Gibb's free energy). It will not react with oxygen (or air) even above 500C. Above that it starts to form TiO2.
There should not occur any reaction with air at such temperatures if the TiN sample is compact or a dense film. With very fine powders, less than 1µm grain size, it could, however, take up some oxygen. The problem is often the moisture. Even at room temperature TiN powder reacts with water. You can smell ammonia if you open a bottle containing TiN which was exposed to ambient air. The ammonia stems from hydrolysis of TiN.