You need to drop the TEMP files before running this command, You can use the following script to generate drop SQL to resolve this NID-00137 error. After the temp table spaces are dropped and the NID command is executed with no problems you can recreate your temp table spaces.