The downloaded file was not installed in the system properly. It is likely that the data has been corrupted during the download process.
Delete the downloaded file. On PS4, go to Notifications > Downloads and select the content. Then press the OPTIONS button on your controller and delete the downloaded content.
Try downloading the file again. If you had the error with a game patch, highlight the game application on the Home Screen, press the OPTIONS button and select Check for Update. If you had the error with a game from the PS Store, go to Library and select the application to download the file.
If the error persists, try initialising your system by going to Settings > Initialisation > Initialise PS4 > Quick. Then try re-downloading the content.
If the error persists and if you have previously upgraded HDD, switch to the original HDD and re-install the system software. After system re-installation or initialisation, try re-downloading the content.