I'm using this plugin, and I was facing the same issue.
After some trial and error I just ran :Dotnet _server update and dotnet tool install -g EasyDotnet and the issue was fixed.
To be fair, I don't know exactly what is happening but maybe you could give that plugin a try and use the built-in roslyn and maybe run those comments, you can check its doc as well.