Packaging for Android for UE4 game failed

I got this error while packaging for Android and Quest . Is shows location in Z drive but I have only 2 drive C & D . I got this error randomly i.e. sometime thing work nicely but sometime it failed in Android as well as Quest packaging. I researched about it but no luck.

Task :app:packageRelease FAILED
FAILURE: Build failed with an exception.
*What went wrong: Execution failed for task ‘:app:packageRelease’.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
java.io.FileNotFoundException: Z:\app\build\intermediates\incremental\packageRelease\tmp\release\zip-cache\javaResources0 (The process cannot access the file because it is being used by another process)
*Try: Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
*Get more help at https://help.gradle.org
BUILD FAILED in 5m 4s
62 actionable tasks: 62 executed
ERROR: cmd.exe failed with args /c “D:\Exxar_Ue4_setup\Jenkins\workspace\Exxar2x-4.26\Intermediate\Android\arm64\gradle\rungradle.bat” :app:assembleRelease (see D:\Exxar_Ue4_setup\UE4-2.6\UnrealEngine\Engine\Programs\AutomationTool\Saved\Logs\Log.txt for full exception trace)
AutomationTool exiting with ExitCode=1 (Error_Unknown)
BUILD FAILED