Hello,
Have a look at this Answerhub post: ERROR: cmd.exe failed with args /c "C:/NVPACK/apache-ant-1.8.2/bin/ant.bat" debug - Debugging, Optimization, & Profiling - Unreal Engine Forums
The accepted answer should contain the solution to your packaging issues based on the errors I’m seeing in your logs.
Have a great day