Reproduction steps:
1. Open the attached project “RayTracingLeak”
2. Open “Assets/OutdoorsScene.unity”
3. Enter the Play Mode
4. In the Hierarchy window select “ObjectSpawner” GameObject
5. In the Inspector window, change the “Ray Tracing Mode” property value to “Dynamic Geometry”
6. Open Task Manager
7. Focus the Editor and observe memory usage in Task Manager
Expected result: Memory usage slightly changes and settles
Actual result: Memory usage keeps increasing
Reproducible with: 2022.2.0a15, 2022.2.12f1, 2023.1.0b9, 2023.2.0a8
Not reproducible with: 2021.3.21f1, 2022.2.0a14
Couldn't test with: 2020.3.46f1 (Assets\SpawnObject.cs(23,37): error CS1061: 'Stack<GameObject>' does not contain a definition for 'TryPeek')
Reproducible on: Windows 10