We also started getting this error yesterday without any updates to Sonar or the file in question.
Only difference I noticed in the logs is the Roslyn version being used.
Failing builds have this line logged:
Roslyn version: 4.10.0.0
whereas successful builds before the failures started have this:
Roslyn version: 4.9.0.0
Don’t know if that’s connected.