Considering the general opinion, IIM Jammu is way safer than NIT Srinagar. Some reasons that support this opinion are
On the other hand, NIT Srinagar
The only drawback of IIM Jammu is that it just has a temporary campus whereas NIT Srinagar has been established for years.