If your AVI files are corrupted, you can use the VLC player, which has an inbuilt video repair tool, to get rid of the issue. Here’s how you can do it:
Download the VLC media player on your PC.
Go to Tools > Preferences > Input/Codec.
Navigate to the option that says Damaged or Incomplete AVI file and choose Always Fix in front of it.
Click Save to finish the troubleshooting.