I have found that with these newer Hikvision firmware releases, that I had to flash several revisions to get the most current version.
For example, 5.1 to 5.2 to 5.3 and then to 5.4
Otherwise I got the same errors that you did, this was for both Hikvision branded USA cameras and Lorex versions.