Seems that your router goes into read-only mode. That can be caused by corrupted memory and/or HW issues. Netinstall your router to the latest RouterOS version, upgrade firmware and see if that helps. If not, then send supout file from your router to
support@mikrotik.com.