Because the group R-N2+X- is a 'N2' containing group. N2 is a gas (entropically favored) and is also very very stable (thermodynamic favored). The 'expulsion' of N2 from the parent molecule is the driver force for diazocompound s decomposition
i think at high temperature the force of attraction between N2+ and X- diminishes hence destabilisation will be occurs and N2 act as good leaving group ...so chances to any reactions like nucleophillic