I am currently building a small project and it seems like having a long file path (about 32 characters I believe) causes a buffer overflow and crashes the upload. Using Arduino IDE 2.3.6 on Fedora 42.
It crashes during the "Building LittleFS filesystem" with message "*** buffer overflow detected ***: terminated" and results in the uploader trying to upload an empty image.