I think this could be linked to Linker "The command line is too long" (ESP32)
but i cant see any fix in the post