Fix broken download error of 99% of Internet Download Manager (IDM)

Have you ever noticed that there are times when Internet Download Manager (IDM) downloads data from the Internet completely normal, but when it completes 99%, it suddenly reports an error?