Error message: “code = Corrupt (11), message = System.Data.SQLite.SQLiteException (0x800007EF): database disk image is malformed”

Hello, I get the following error message when trying to upgrade a TM in Trados Studio 2021: “code = Corrupt (11), message = System.Data.SQLite.SQLiteException (0x800007EF): database disk image is malformed”.
Strangely, I can open the TM and see the Translation units, but I cannot save new Translation units in the TM.
Could you let me how to fix this to be able to use the TM normally?
Thanks

------------------------------------------------------------------------------------
Se ha iniciado la actualización de las memorias de traducción. (16/02/2022 12:37:25)
------------------------------------------------------------------------------------

Carpeta de trabajo: C:\Users\Cristina\Documents\TRADOS STUDIO\TMs\EN_ES\Studio financiera EN_ES


------------------------------------------------------------
Volver a indexar memoria de traducción (16/02/2022 12:37:25)
------------------------------------------------------------

Memoria de traducción : C:\Users\Cristina\Documents\TRADOS STUDIO\TMs\EN_ES\Studio financiera EN_ES\TM Financiera EN_ES_en-GB_es-ES.sdltm
Unidades de traducción: 824

El proceso ha fallado (16/02/2022 12:37:25)
code = Corrupt (11), message = System.Data.SQLite.SQLiteException (0x800007EF): database disk image is malformed
database disk image is malformed
   en System.Data.SQLite.SQLite3.Reset(SQLiteStatement stmt)
   en System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
   en System.Data.SQLite.SQLiteDataReader.NextResult()
   en System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
   en System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   en System.Data.SQLite.SQLiteCommand.ExecuteNonQuery(CommandBehavior behavior)
   en System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
   en Sdl.LanguagePlatform.TranslationMemoryImpl.Storage.SqliteStorage.IndexTus(List`1 tus, FuzzyIndexes indexes, Boolean includeFragmentHash)
   en Sdl.LanguagePlatform.TranslationMemoryImpl.Storage.SqliteStorage.IndexTu(TranslationUnit tu, FuzzyIndexes indexes, Boolean includeFragmentHash)
   en Sdl.LanguagePlatform.TranslationMemoryImpl.Storage.SqliteStorage.UpdateTuIndices(List`1 tus, FuzzyIndexes indexes, Int64 tokenizationSignatureHash, TextContextMatchType textContextMatchType)
   en Sdl.LanguagePlatform.TranslationMemoryImpl.Importer.Reindex(AnnotatedTranslationUnit[] atus)
   en Sdl.LanguagePlatform.TranslationMemoryImpl.ResourceManager.ReindexTranslationUnits(PersistentObjectToken tmId, CancellationToken token, IProgress`1 progress, Boolean selective)
   en Sdl.LanguagePlatform.TranslationMemoryImpl.API.SelectiveReindexTranslationUnits(Container container, PersistentObjectToken tmId, CancellationToken token, IProgress`1 progress)
   en Sdl.LanguagePlatform.TranslationMemoryApi.FileBasedTranslationMemory.SelectiveReindexTranslationUnits(CancellationToken token, IProgress`1 progress)
   en Sdl.TranslationStudio.Common.TranslationMemory.TranslationMemoryAutomation.Jobs.SelectiveReIndexTranslationMemoryJobRequest.Execute(IJobExecutionContext context)

-----------------------------------------------------------------------------
Actualización de las memorias de traducción finalizada. (16/02/2022 12:37:25)
-----------------------------------------------------------------------------



emoji