Ugly striped shadows with jagged edges

I’m using the latest version of hdrp. The image shows shadows from a directional light on a procedurally generated mesh. I’m using the default options from the HDRP template.

Try to increase the shadow map resolution.