This can be caused due to several factors:
- You might be using an older version of IDM
- There might be a conflict between IDM and the applications that control the network flow. Due to this, the file cannot rectify the last bit of the download. Therefore, failing the download
- The file that you might be downloading could be corrupted.