Guru Meditation Error: Core 1 panic'ed (Unhandled debug exception)

Hello everybody,

I have complex esp-project with around 70 templates, switches etc. for our garden irrigation.

If I add one more template switch to the code, I get a Guru Meditation Error:

Guru Meditation Error: Core 1 panic’ed (Unhandled debug exception).
Debug exception reason: Stack canary watchpoint triggered (loopTask)

The ressources of the esp look quite fine:
RAM: 15%
Flash: 61%
Heap-Size: 166.300 bytes
Heap-Max: 151.300 bytes

There are some old threads about this topic recommending to increase stack size - unfortunately this code does not work anymore. (Add cg.with_local_variable by jpeletier · Pull Request #3577 · esphome/esphome · GitHub)

Does anyway have similiar problems?