Metal Shader Compile Error 5.1.1

When packing my project I always run into some shader compiler error and I have no idea what to do or why this suddenly appeared.