It's not core 0 but core 1 and it's not Espruino but Arduino... nevertheless it is a thought worth. @JumJum has done quite some work on ESP32 and things may ring a bell for him...
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Interesting... of course annoying for you...
What about the power supply? Unstable power supply can cause reboot.
Browsing the Web bubbled this 6+ months old thing up: https://gitlab.com/painlessMesh/painlessMesh/issues/221
It's not core 0 but core 1 and it's not Espruino but Arduino... nevertheless it is a thought worth. @JumJum has done quite some work on ESP32 and things may ring a bell for him...