Virus or malware can infect .7z files and lead to 7-Zip data error. If that is the case, then the only solution to fix the error would be to remove the virus with the help of a reliable antivirus tool and then redownload the extraction tool to extract it.