This version of Unity is unsupported.

LightEditor.Settings.lightShape

public SerializedProperty lightShape;

Description

This property describes the shape of the spot light. Only Scriptable Render Pipelines use this property; the built-in renderer does not support it.