As a test, can you remove all the tft related code from the sketch, so that all it does is copy the file from the SD card to SPIFFS? Once that is verified to work, then add back the tft display to see if there is some conflict, verify that works then add back the code for the AnimatedGif.