[#1689] avoid out-of-memory when bytecache file is corrupted