Reproduction steps:
1. Open the attached “CrashRepro” project
2. Open the “Packages/SDF/Tests/Editor/AST/AstTests.cs” script file
3. Scroll down to HlslSyntaxSmokeTest() test method and run it
Expected result: The test either passes or not
Actual result: Unity Editor crashes
Reproducible with: 2021.3.30f1, 2022.2.0a11
Fixed in: 2022.2.0a12
Reproducible on: Ubuntu 23.04
Not reproducible on: Windows 10 Pro 22H2
Note: Stack trace is not printed to the Editor.log