A question in my exercise book demonstrates that nitrogen cannot form non-octet structures since the most common examples — nitrogen dioxide and nitrogen monoxide — are unstable/reactive. For example, $\ce{NO2}$ quickly dimerizes to $\ce{N2O4}.$ $\ce{NO}$ is quickly oxidized to $\ce{NO2}.$ Other elements, like phosphorus, on the other hand, can form stable phosphorus pentachloride.
I do not think the question is precisely set. Despite the instability of nitrogen dioxide and nitrogen monoxide, it does not mean nitrogen “cannot” form non-octet structures.
Could anyone give me examples of stable nitrogen compounds where the nitrogen atom does not achieve an octet? I just want to prove that the answer is wrong.