This happens to me all the time when I'm kitbashing. Simple enough fix.
Port first to 3DS format, then from 3DS, port to MOD. That should get rid of any unused and unneeded material IDs.
If they are still showing up after this, then chances are they are in use.