@pkourany Hi, You don't need to enable the PSRAM to run standard sketches in the Arduino IDE.
The Arduino IDE does not act on a low enough level for it to write directly to the PSRAM... you have to use something else like the ESP Flash Download Tool, which is used for example when you load Micro Python onto the M5Stack. Or the ESP-IDF compiler / flashing program....
Both are discussed here:
http://iot-bits.com/esp32/esp32-flash-download-tool-tutorial/
The ESP Flash Download Tool is easier to setup and use than the ESP-IDF compiler / flashing program.