In SharePoint 2010 once I had found a lot of errors in time of execution or publishing workflow processes: "(-1, -1) Type System.CodeDom.CodeBinaryOperatorExpression is not marked as authorized in the application configuration file.)". It happened right after installation of Windows updates on server.

I don't know who had found the solution, but in SharePoint 2010  to fix the problem you should add the string below to web.config of your site (web application).

<authorizedType Assembly="System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System.CodeDom" TypeName="*" Authorized="True"/> 

You should add it to all the servers in your SharePoint farm.

The update, which leds to this error, is .NET Security Only patch to resolve CVE-2018-8421 (Remote Code Execution Vulnerability).