There were a few posts about a similar error:
https://community.n8n.io/t/extremely-strange-adding-ai-node-to-canvas-with-telegram-causes-workflow-to-not-trigger
https://community.n8n.io/t/cannot-read-properties-of-undefined-reading-execute-error-in-production-mode-only