I encountered a similar issue before, and I found a workaround that might help. Here's what I did:
First, I suspected that the file might not actually be a ZIP archive, but perhaps a gzipped file incorrectly named with a .zip extension.
I used the gzip command to decompress the file:
gzip m1.zip
This command converted the file into a gzipped archive (m1.zip.gz).
Then, I extracted the gzipped archive using the tar command:
tar -xvzf m1.zip.gz #dont use unzip or gunzip as it return same zip file
This step successfully extracted the contents of the archive.
Additionally, during the extraction process, I noticed that a md5sum.txt file was generated. This file contained MD5 checksums for the extracted files.
md5sum extracted_file.gz #lynux
md5 extracted_file.gz #macos
I matched the output of this command with the checksums provided in md5sum.txt. If they matched, it indicated that the file wasn't corrupted.
Also integrity of the original zipfile can be tested using the -t option with unzip command:
unzip -t m1.zip
This command tests the integrity of the zipfile. If it passes without errors, it's another indication that the file is not corrupted.
This approach helped me successfully extract the files from a potentially corrupted archive. I hope it helps you too!