My Unreal engine package Project failed please help

When I press windows > Package Project and select the folder where i want it to save it shows that it failed and says cook failed. I am a begginer and i dont know much about unreal engine. Unreal engine 5.1.1 is my version. I have one TGA file to be cooked or whatever into a pak file for my f1 manager game.

LOGS —-

================================================
LogShaderCompilers: Display: === FShaderJobCache stats ===
LogShaderCompilers: Display: Total job queries 0, among them cache hits 0 (0.00%)
LogShaderCompilers: Display: Tracking 0 distinct input hashes that result in 0 distinct outputs (0.00%)
LogShaderCompilers: Display: RAM used: 0.00 MB (0.00 GB) of 1638.40 MB (1.60 GB) budget. Usage: 0.00%
LogShaderCompilers: Display: === Shader Compilation stats ===
LogShaderCompilers: Display: Shaders Compiled: 0
LogShaderCompilers: Display: Jobs assigned 0, completed 0 (0.00%)
LogShaderCompilers: Display: Time at least one job was in flight (either pending or executed): 0.00 s
LogShaderCompilers: Display: ================================================
LogSlate: Updating window title bar state: overlay mode, drag disabled, window buttons hidden, title bar hidden
LogSlate: Updating window title bar state: overlay mode, drag disabled, window buttons hidden, title bar hidden
LogSlate: Updating window title bar state: overlay mode, drag disabled, window buttons hidden, title bar hidden
LogSlate: Updating window title bar state: overlay mode, drag disabled, window buttons hidden, title bar hidden
LogPakFile: Display: Mounted Pak file ‘C:/Program Files/Epic Games/UE_5.1/FeaturePacks/StarterContent.upack’, mount point: ‘root:/’
LogPakFile: Display: Mounted Pak file ‘C:/Program Files/Epic Games/UE_5.1/FeaturePacks/TP_FirstPerson.upack’, mount point: ‘root:/’
LogPakFile: Display: Mounted Pak file ‘C:/Program Files/Epic Games/UE_5.1/FeaturePacks/TP_FirstPersonBP.upack’, mount point: ‘root:/’
LogPakFile: Display: Mounted Pak file ‘C:/Program Files/Epic Games/UE_5.1/FeaturePacks/TP_HandheldARBP.upack’, mount point: ‘root:/’
LogPakFile: Display: Mounted Pak file ‘C:/Program Files/Epic Games/UE_5.1/FeaturePacks/TP_ThirdPerson.upack’, mount point: ‘root:/’
LogPakFile: Display: Mounted Pak file ‘C:/Program Files/Epic Games/UE_5.1/FeaturePacks/TP_ThirdPersonBP.upack’, mount point: ‘root:/’
LogPakFile: Display: Mounted Pak file ‘C:/Program Files/Epic Games/UE_5.1/FeaturePacks/TP_TopDown.upack’, mount point: ‘root:/’
LogPakFile: Display: Mounted Pak file ‘C:/Program Files/Epic Games/UE_5.1/FeaturePacks/TP_TopDownBP.upack’, mount point: ‘root:/’
LogPakFile: Display: Mounted Pak file ‘C:/Program Files/Epic Games/UE_5.1/FeaturePacks/TP_VehicleAdvBP.upack’, mount point: ‘root:/’
LogPakFile: Display: Mounted Pak file ‘C:/Program Files/Epic Games/UE_5.1/FeaturePacks/TP_VirtualRealityBP.upack’, mount point: ‘root:/’
LogTurnkeySupport: Turnkey Device: Win64@DESKTOP-E8RFPFA: (Name=DESKTOP-E8RFPFA, Type=Computer, Status=Valid, , Flags=“Device_InstallSoftwareValid”)
LogSlate: Took 0.000074 seconds to synchronously load lazily loaded font ‘../../../Engine/Content/Slate/Fonts/Roboto-Regular.ttf’ (155K)
LogSlate: Took 0.000063 seconds to synchronously load lazily loaded font ‘../../../Engine/Content/Slate/Fonts/Roboto-Italic.ttf’ (157K)
LogSlate: Took 0.000041 seconds to synchronously load lazily loaded font ‘../../../Engine/Content/Slate/Fonts/DroidSansMono.ttf’ (77K)
LogViewport: Scene viewport resized to 1526x902, mode Windowed.
LogStall: Startup…
LogStall: Startup complete.
LogLoad: (Engine Initialization) Total time: 8.11 seconds
LogLoad: (Engine Initialization) Total Blueprint compile time: 0.00 seconds
LogAssetRegistry: Asset discovery search completed in 5.6656 seconds
LogCollectionManager: Fixed up redirectors for 0 collections in 0.000004 seconds (updated 0 objects)
LogContentStreaming: Texture pool size now 1000 MB
LogSlate: Took 0.000223 seconds to synchronously load lazily loaded font ‘../../../Engine/Content/Slate/Fonts/Roboto-Bold.ttf’ (160K)
LogSlate: Window ‘Project Settings’ being destroyed
LogSlate: Window ‘Project Settings’ being destroyed
LogSlate: Window ‘Project Settings’ being destroyed
LogSlate: Window ‘Project Settings’ being destroyed
LogSlate: Window ‘Editor Preferences’ being destroyed
LogSlate: Window ‘Editor Preferences’ being destroyed
LogSlate: Window ‘Project Settings’ being destroyed
LogSlate: Window ‘Project Settings’ being destroyed
LogDerivedDataCache: C:/Users/intel/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished in +00:00:04.121 and deleted 0 files with total size 0 MiB. Scanned 2740 files in 2714 folders with total size 48 MiB.
LogInterchangeEngine: [Pending] Importing
LogTexture: Display: Building textures: /Game/UITextures/StaffPhotos/Faces/Named/Drivers/F2/Jehan_Daruvala_TK.Jehan_Daruvala_TK (TFO_AutoDXT, 640x640 x1x1x1) (Required Memory Estimate: 68.395823 MB), EncodeSpeed: Fast
LogInterchangeEngine: [Pending] Importing
LogInterchangeEngine: [Success] Import Done
LogInterchangeEngine: [Success] Import Done
LogSlate: Took 0.000112 seconds to synchronously load lazily loaded font ‘../../../Engine/Content/Slate/Fonts/Roboto-Light.ttf’ (167K)
LogUObjectHash: Compacting FUObjectHashTables data took 0.36ms
LogSlate: Window ‘Save Content’ being destroyed
LogFileHelpers: InternalPromptForCheckoutAndSave started…
LogPackageLocalizationCache: Processed 43 localized package path(s) for 1 prioritized culture(s) in 0.003221 seconds
LogSerialization: UsePackageTrailer: ‘true’
LogSavePackage: Moving output files for package: /Game/UITextures/StaffPhotos/Faces/Named/Drivers/F2/Jehan_Daruvala_TK
LogSavePackage: Moving ‘../../../../../../Users/intel/Documents/Unreal Projects/MyProject2/Saved/Jehan_Daruvala_TKDBDDD5BC436EE3A5AA8980BB095D3AC5.tmp’ to ‘../../../../../../Users/intel/Documents/Unreal Projects/MyProject2/Content/UITextures/StaffPhotos/Faces/Named/Drivers/F2/Jehan_Daruvala_TK.uasset’
LogFileHelpers: InternalPromptForCheckoutAndSave took 85 ms
AssetCheck: New page: Asset Save: Jehan_Daruvala_TK
LogContentValidation: Display: Validating /Script/Engine.Texture2D /Game/UITextures/StaffPhotos/Faces/Named/Drivers/F2/Jehan_Daruvala_TK.Jehan_Daruvala_TK
LogSlate: Window ‘Enter Chunk ID’ being destroyed
LogUObjectHash: Compacting FUObjectHashTables data took 0.28ms
LogFileHelpers: InternalPromptForCheckoutAndSave started…
LogSavePackage: Moving output files for package: /Game/UITextures/StaffPhotos/Faces/Named/Drivers/F2/Jehan_Daruvala_TK
LogSavePackage: Moving ‘../../../../../../Users/intel/Documents/Unreal Projects/MyProject2/Saved/Jehan_Daruvala_TKEB53272642D306144DCD01B4F47732C3.tmp’ to ‘../../../../../../Users/intel/Documents/Unreal Projects/MyProject2/Content/UITextures/StaffPhotos/Faces/Named/Drivers/F2/Jehan_Daruvala_TK.uasset’
LogFileHelpers: InternalPromptForCheckoutAndSave took 67 ms (total: 152 ms)
LogTurnkeySupport: Project does not require temp target
LogLauncherProfile: Found promoted target with matching version at ../../../Engine/Binaries/Win64/UnrealGame.target
LogMonitoredProcess: Running Serialized UAT: [ cmd.exe /c ““C:/Program Files/Epic Games/UE_5.1/Engine/Build/BatchFiles/RunUAT.bat” -ScriptsForProject=“C:/Users/intel/Documents/Unreal Projects/MyProject2/MyProject2.uproject” Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -EditorIO -EditorIOPort=63342 -project=“C:/Users/intel/Documents/Unreal Projects/MyProject2/MyProject2.uproject” BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project=“C:/Users/intel/Documents/Unreal Projects/MyProject2/MyProject2.uproject” -unrealexe=“C:\Program Files\Epic Games\UE_5.1
\Engine\Binaries\Win64\UnrealEditor-Cmd.exe” -platform=Win64 -installed -stage -archive -package -pak -iostore -compressed -prereqs -archivedirectory=“C:/Users/intel/Documents/Unreal Projects/MyProject2” -manifests” -nocompile -nocompileuat ]
AssetCheck: New page: Asset Save: Jehan_Daruvala_TK
LogContentValidation: Display: Validating /Script/Engine.Texture2D /Game/UITextures/StaffPhotos/Faces/Named/Drivers/F2/Jehan_Daruvala_TK.Jehan_Daruvala_TK
UATHelper: Packaging (Windows): Running AutomationTool…
UATHelper: Packaging (Windows): Using bundled DotNet SDK version: 6.0.302
UATHelper: Packaging (Windows): Starting AutomationTool…
UATHelper: Packaging (Windows): Parsing command line: -ScriptsForProject=“C:/Users/intel/Documents/Unreal Projects/MyProject2/MyProject2.uproject” Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -EditorIO -EditorIOPort=63342 -project=“C:/Users/intel/Documents/Unreal Projects/MyProject2/MyProject2.uproject” BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project=“C:/Users/intel/Documents/Unreal Projects/MyProject2/MyProject2.uproject” -unrealexe=“C:\Program Files\Epic Games\UE_5.1\Engine\Binaries\Win64\UnrealEditor-Cmd.exe” -platform=Win64 -installed -stage -a
rchive -package -pak -iostore -compressed -prereqs -archivedirectory=“C:/Users/intel/Documents/Unreal Projects/MyProject2” -manifests -nocompile -nocompileuat
UATHelper: Packaging (Windows): Initializing script modules…
UATHelper: Packaging (Windows): Total script module initialization time: 0.10 s.
UATHelper: Packaging (Windows): Executing commands…
UATHelper: Packaging (Windows): Installed Sdk validity:
UATHelper: Packaging (Windows): Win64: (Status=Valid, MinAllowed_Sdk=10.0.00000.0, MaxAllowed_Sdk=10.9.99999.0, Current_Sdk=10.0.19041.0, Allowed_AutoSdk=10.0.18362.0, Current_AutoSdk=, Flags=“InstalledSdk_ValidVersionExists”)
UATHelper: Packaging (Windows): Scanning for envvar changes…
UATHelper: Packaging (Windows): … done!
UATHelper: Packaging (Windows): Cleaning Temp Paths…
UATHelper: Packaging (Windows): BUILD SUCCESSFUL
UATHelper: Packaging (Windows): Setting up ProjectParams for C:\Users\intel\Documents\Unreal Projects\MyProject2\MyProject2.uproject
UATHelper: Packaging (Windows): **** COOK COMMAND STARTED ****
UATHelper: Packaging (Windows): Running UnrealEditor Cook for project C:\Users\intel\Documents\Unreal Projects\MyProject2\MyProject2.uproject
UATHelper: Packaging (Windows): ERROR: Cook failed.
UATHelper: Packaging (Windows): (see C:\Users\intel\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.1\Log.txt for full exception trace)
PackagingResults: Error: Cook failed.
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 0s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
UATHelper: Packaging (Windows): BUILD FAILED
PackagingResults: Error: Unknown Cook Failure

ANY HELP WOULD BE GREATLY APPRECIATED

Hey there @Aarav13434! Welcome to the community! This log only gives a vague error, the other more direct log may have more. This one is mentioned here:
C:\Users\intel\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.1\Log.txt for full exception trace

Often packaging issues like this can stem from cached data needing to be cleared, but the other log should tell us more information if this doesn’t work. First, back your project up somewhere safe, then delete your Saved, Intermediate, and DerivedDataCache from the project folder. This should regenerate when you launch the project.