Unknown Error Causing Infinite Loop

This warning keeps spamming log files in games using the mod AI Wave Survival. Starts showing up in the logs when boss units spawn that have additional units bound to them. Not sure if it is a specific unit causing the warning. Not even sure if it is this error causing the infinite loop, as the warning does not always result in an infinite loop occurring and freezing the game (gameplay stops, CPU use skyrockets, but UI is still functional).

Any ideas appreciated, or if this issue is present in other mods.

warning: Attempted to resume a thread that was already killed
         stack traceback:
         	[C]: in function `ResumeThread'
         	...eplaydata\gamedata\lua.nx2\lua\defaultcomponents.lua(481): in function `CreateTreads'
         	...eplaydata\gamedata\lua.nx2\lua\defaultcomponents.lua(438): in function <...eplaydata\gamedata\lua.nx2\lua\defaultcomponents.lua:426>
         	...aydata\gamedata\lua.nx2\lua\sim\units\mobileunit.lua(84): in function `CreateMovementEffects'
         	...forever\replaydata\gamedata\lua.nx2\lua\sim\unit.lua(3291): in function <...forever\replaydata\gamedata\lua.nx2\lua\sim\unit.lua:3276>
         	...aydata\gamedata\lua.nx2\lua\sim\units\mobileunit.lua(131): in function <...aydata\gamedata\lua.nx2\lua\sim\units\mobileunit.lua:130>

play with cheats. Spawn the boss in question, then look at the log.
This will give you a starting point where the problem lies.
I have tons of units attached to other units (buildings and mobile alike), they come and go based on which attachment or power-up was taken, or which enhancement built, so that part should not be an issue.

But the log is your friend, use it.