The chain sparks? There's only 2 things that come to mind... the chain is grinding against something and what you see is metal flaking off not actual sparks... or you have a hot wire clicking off the chain which would be naturally grounded as a chassis component indirectly connected to the engine block.