I got that bug once or twice too, but never figured out what caused it. Basically, the lighting system tries to shift from one color of light to another, but can never land on the new color, cycling through a bunch of RGB values to try and hit it.
Next game / if Yarntown becomes its own IP, will have a different lighting system, that one hogged too much CPU anyway