There is 0 indication that SmartMatrix is involved in this crash, unless I’m missing something.
It looks like you posted to the wrong place.
We can’t support you with debugging your code, but I suggest you install GitHub - me-no-dev/EspExceptionDecoder: Exception Stack Trace Decoder for ESP8266 and ESP32
If you need further help, I suggest you find an appropriate ESP32 board, unless you have a clear question related to SmartMatrix