The source of the issue seems to be a bug in FXC, and unfortunately we can't do anything about it. Could try using DXC which may not contain the bug.
For now, I've improved the error message reported to more clearly indicate that the shader compiler crashed due to FXC (as opposed to a crash caused by code Unity owns).