After opening the mod and adding log statements in places, the actual error is trying to use a research recipe that was changed after disco science loaded, causing it to think one or more of the packs used don't exist. Making it load after MSP and adding all of MSP's packs to colorMapping fixed it.
I'm not the owner of or involved in the development of MSP, also not sure where i would put one of those. I think this also displays the symptoms of a larger problem, any mod that modifies tech recipes after disco loads isn't handled, because the recipe reader only runs once at startup.
Yeah, unfortunately I don't know of a better way of doing it. The modding API isn't really designed to extract or associate colour information in the way that I'm doing it.