Show a screen dump of the "Tools" page in the IDE where it is clear what board type etc. that you selected. Show also a link to the exact board type you have. It may be that your version of the ESP32 does does not have PSRAM.
actually before the code got uploaded and the device worked for many days, recently i'm facing this issue so if there is any way to solve it ,it will be a great help to me.
Maybe the chip died or the soldering was bad or you had one device with PSRAM and the others without and swaped them accidentally ... anyway, no PSRAM here (any more).
It is possible then that something is cached if you are getting exactly the same error message.
Close the IDE and reopen it. Check that the PSRAM option is still disabled. Attempt to load the simple "Blink" sketch example and then show the error message (if any).
It seems that you are saying that the Blink sketch loads and works correctly with PSRAM disabled but the application you have been running previously does not work with PSRAM disabled and always gives exactly the same error messages.
I find this a bit strange because the error message refers specifically to the PSRAM type that you had previously selected namely opi PSRAM but those ESP32 development kits can have two types of PSRAM, that is OPI and QSPI (or none at all) and I can't imagine that any application would be sensitive to the exact type provided that the correct PSRAM type (matching the installed type) was declared in the Tools window.