NickyJ wrote: "Abnormal" instead of the usual "File #00000 512x512 256 Color" or "192x192 256 Color".
Player portrait mmap files should not have filenames. I believe this became the "usual" years ago when someone first made "HD" portraits and reused a 512x512 mmap file found elsewhere in the dat files. It may work, but it's wrong.
DEX was written before we know what we do now about the dat files, it's definitely possible that there is a read bug in there due to the unexpected file sizes introduced by customized dat files. That hd portrait pack has a couple oddball sizes in there... a 16x16 and a 384x384 not sure but that may have something to do with it as well.
Ok, here is the problem...It is file 2059. That file is breaking the reader and you will continue to have problems with DEX if you leave it as is.
Replace it with 96x96 (or 512x512 if you feel it is necessary)