Editor crashes when saving Shaders Variant

The editor closes with an error when I try to save a shader variant again in Project Settings → Graphics → Save to asset.

The video is from a scratch project created to show the error.