1500 characters is quite a long action script. Can you post your *.JSON or the rc_config file from the root of your ESP32-C3 (rc_config is the *.JSON file you load via app CyberBrick_Controller_Core/src/app_rc/app/rc_main.py at b5fc07d44d65143cfef1164ae6234099fcb11d62 · CyberBrick-Official/CyberBrick_Controller_Core · GitHub). You could also check mem_info from library micropython: micropython – access and control MicroPython internals — MicroPython for CyberBrick V01.00.00.02 documentation and garbage collector memory allocation: gc – control the garbage collector — MicroPython for CyberBrick V01.00.00.02 documentation
Possibly your system runs out of memory and needs to trigger time consuming garbage collector.