I've found that the HTML Help Compiler doesn't make a good bound checking. If you put an index name greater than 250 chars, the chances that the compiling crash are high.
Bear this in mind if you are constructing software that outputs HTML Help Compiler projects, it is easy to create entries larger than those 250 chars and therefore the crash is served, and it is not easy to detect.