UE5.1 can't package : startIndex cannot be larger than length of string

After spending some time reading the log and going through the UE source code, I have finally found that it is about setting pak file, so I just don’t use it when packaging.
Now I can finally build it successfully.

But still waiting for the detailed answer, why this happens to me.