Just like in #6822
the render_esi does not pass objects to a controller. For example this code
{% for box in pageparts %}
{{ render_esi(controller(box.controller, { pagePart: box })) }}
{% endfor %}
Will work fine in dev environment but cause a PHP Exception in production environment