What is happening
Mozilla documents Repair Folder as a way to rebuild an MSF index. It also warns that compacting a corrupt underlying MBOX can produce a truncated replacement, especially when storage, antivirus, or cloud-sync interference is involved.