I've wasted hours on this.
Just remove LOG_STACK from .env It's an L10 directive and when kept inside .env after an upgrade it will create many problems in multiple places of the app.
LOG_STACK
.env