Thank to all!
I'm sorry for wasting your time
I accidentally found the source of the problem. It must have happened while
using my compression routine to remove unnecessary white space. I couldn't
replicate the error; when I used it on a very large file, it gave the same
error. Suspended... for now.
Sorry again !