Recently we have been noticing file system corruptions on multiple Onion Omega 2S+ devices. We are running a custom software on the system (using Golang) that reads from a set of sensors and sends the data over MQTT using a 3G cellular module. The data is also stored on the SD card attached to the board.
We are observing the creation of a lot of (up to 6000) 0 byte files in the root folder. The system suddenly stops and we cannot log in to the device using WinSCP/Windows Powershell or any SSH client. If we do a power cycle at this point, the device gets bricked. We know how to recover a bricked device, using the web recovery mode but we want to figure out how to stop these file corruptions from happening. Any help is appreciated.