Sonar Analysis crash with StackOverflowException

After Update from 9.9 to 10.7 the analysis crashes with an StackOverflowException. When analyzing without SonarAnalyzer.Security.dll, the analysis does not crash

Log:

2024-11-11T09:35:05.0591544Z   CompilerServer: server failed - server rejected the request 'Error reading response: Reached end of stream before end of read.' - 1dc5831a-716e-4c38-8743-c92970067b91
2024-11-11T09:35:06.0496374Z ##[error]C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\Roslyn\Microsoft.CSharp.Core.targets(75,5): Error : 
2024-11-11T09:35:06.0498922Z C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\Roslyn\Microsoft.CSharp.Core.targets(75,5): error :  [C:\A3\_work\1\s\Sources\Services\Services.FileAccess\Services.FileAccess.csproj]
2024-11-11T09:35:06.0500397Z ##[error]C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\Roslyn\Microsoft.CSharp.Core.targets(75,5): Error : Process is terminated due to StackOverflowException.
2024-11-11T09:35:06.0500774Z C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\Roslyn\Microsoft.CSharp.Core.targets(75,5): error : Process is terminated due to StackOverflowException. [C:\A3\_work\1\s\Sources\Services\Services.FileAccess\Services.FileAccess.csproj]

Hey there.

Could you share the detailed MSBuild logs?

MsBuild.exe /t:Rebuild /v:d

or

dotnet build -v:d