Well, I figured out what my problem was. I will post my solution here. Maybe this will help someone else.
My shaders just didn’t compile. Having solved this problem, my project began to be packed without problems.
The solution to the problem with shaders is to
r.XGEShaderCompile = 0