Is it ok to use spoiled or moldy foods
Totally OK, no worries.
You might wondering will the spoil or mold bacterias interferre with the kobold microbes? Bacterias are so tiny, that the food waste world is large enough for them to coexist. It's like putting too groups of ants in a Forest full of food. They don't even have a chanced to meet.