Kibana 17.1 restarting after: "TypeError: Cannot read properties of undefined (reading 'isServer')"

we cannot replicate this issue in a dev environment

Hmm, do you have the same JDK version in all ES containers? Do you have the same JDK versions in dev and prod?