Traceback (most recent call last):
  File "/tmp/.mount_electrwipPvT/usr/lib/python3.10/site-packages/electrum/gui/qt/main_window.py", line 1869, in remove_wallet
    self._delete_wallet()
  File "/tmp/.mount_electrwipPvT/usr/lib/python3.10/site-packages/electrum/gui/qt/main_window.py", line 155, in request_password
    return func(self, *args, **kwargs)
  File "/tmp/.mount_electrwipPvT/usr/lib/python3.10/site-packages/electrum/gui/qt/main_window.py", line 1875, in _delete_wallet
    r = self.gui_object.daemon.delete_wallet(wallet_path)
  File "/tmp/.mount_electrwipPvT/usr/lib/python3.10/site-packages/electrum/daemon.py", line 542, in delete_wallet
    self.stop_wallet(path)
  File "/tmp/.mount_electrwipPvT/usr/lib/python3.10/site-packages/electrum/daemon.py", line 552, in stop_wallet
    return fut.result()
  File "/tmp/.mount_electrwipPvT/usr/lib/python3.10/concurrent/futures/_base.py", line 458, in result
    return self.__get_result()
  File "/tmp/.mount_electrwipPvT/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
    raise self._exception
  File "/tmp/.mount_electrwipPvT/usr/lib/python3.10/site-packages/electrum/daemon.py", line 561, in _stop_wallet
    await wallet.stop()
  File "/tmp/.mount_electrwipPvT/usr/lib/python3.10/site-packages/electrum/wallet.py", line 544, in stop
    self.save_db()
  File "/tmp/.mount_electrwipPvT/usr/lib/python3.10/site-packages/electrum/wallet.py", line 479, in save_db
    self.db.write()
  File "/tmp/.mount_electrwipPvT/usr/lib/python3.10/site-packages/electrum/json_db.py", line 48, in wrapper
    return func(self, *args, **kwargs)
  File "/tmp/.mount_electrwipPvT/usr/lib/python3.10/site-packages/electrum/json_db.py", line 398, in write
    self._append_pending_changes()
  File "/tmp/.mount_electrwipPvT/usr/lib/python3.10/site-packages/electrum/json_db.py", line 48, in wrapper
    return func(self, *args, **kwargs)
  File "/tmp/.mount_electrwipPvT/usr/lib/python3.10/site-packages/electrum/json_db.py", line 409, in _append_pending_changes
    self.storage.append(s)
  File "/tmp/.mount_electrwipPvT/usr/lib/python3.10/site-packages/electrum/storage.py", line 117, in append
    raise StorageOnDiskUnexpectedlyChanged(f"expected size {self.pos}, found {pos}")
electrum.storage.StorageOnDiskUnexpectedlyChanged: expected size 4103, found 4165