Hi.
You need to get out of 22251.
What you are describing matches the issue with rwdata partition being full.
You need to read and follow this guide → APIM Sync Settings Not Saving, VER_ERR08 Errors, Cannot Perform Master Reset or Upgrades/Updates
All methods to recover from that scenario are covered on that thread, should all fail we do not have anything else to suggest at the moment.