Use -D PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48 in your build flags for ESP8266
-D PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48