Animated gif crashes ESP32 output?

Can you try to isolate if it’s a problem with the GIF decoding, or the SmartMatrix Library? You can comment out the Callback code that actually sets pixels and swaps buffers, and see if there’s still a crash.