Something went wrong while Post Processing the assembly: System.Collections.Generic.Queue

I upgraded my project to 2019.3.0f4 with latest packages and now the error below happens frequently. There are two versions of this error, one about Queue and one about Stack. I can get rid of it (for a short time) by switching from Net4.x to 2.0 and back, then hit save. It recompiles a long time then it’s gone for a moment.

Unity 2019.3.0f4

“com.unity.burst”: “1.2.0-preview.11”,
“com.unity.entities”: “0.4.0-preview.10”,
“com.unity.mathematics”: “1.1.0”,
“com.unity.netcode”: “0.0.4-preview.0”,
“com.unity.physics”: “0.2.5-preview.1”,

Any idea?

Seems to be fixed by the solution Joachim provided in Latest Entites and InputSystems packages conflict.