Settings lost on reboot Ubiquiti RocketM2

This has been a persistent bug on Ubiquiti. The flash driver is unable to erase or write the flash chip.
I have only experienced it with version 23 though. 22.03.5 has always worked.