Hi!
I searched a lot on the internet but I didn't get satisfactory answers.
I have a question: if I use in the same sketch to write data in ESP32 in flash memory with the EEPROM library and with SPIFFS, is there the risk of one data overlapping the other or generating some other memory problem or board damage?
EEPROM.h has been deprecated on the ESP32, and you should be using Preferences.h instead. It has built in wear leveling as part of its memory management which moves stored data to different locations when changed.
SPIFFS is best used for large files, and Preferences for simple saving of data that could go in an EEPROM.