XIAO_BLE wakes up from System_ON_Sleep and Writes weather data to on-board Flash

Perhaps you can try to use other libraries, e.g.
SPIMemory
SerialFlash