The issue was triggered by a static field of a quite large value type (which appears to be automatically generated in the repro project). This would cause the interpreter doing the compile-time evaluation of the field to exhaust its memory. To fix this, we enabled the interpreter to grow its heap in a controlled manner.