Light flickering in custom toon shader

Im using a custom toon shader for a scene, bur when the camera moves the ligth flickers and the ligth sports becomes bigger for some frames, any idea why that could be?
This is my shader set up

I’m a beginner myself, but maybe try using Diffuse BSDF instead of Principled BSDF.