Custom Lighting Shadow Artifact (Half Lambert)

So I’m trying to do some Half Lambert Lighting and used the Shader Graph Feature Examples graphs as a basis for custom lighting.
It seems to work fine, but when I enable shadows on the mesh, I get this odd banding.

Shadow Off

Shadow On

Any idea why this is happening? It seems to be present for the original sample graph as well.