How do i include localization in .pak files while packaging the game using the Project Launcher

I am packaging my game using the Project Launcher. if i do not pack the content into .pak files, then localization works fine and I am able to switch the language.
If I do pack the content into a .pak file, then when i try to switch the language, I get a fatal error and the game crashes. Seems to be a null reference exception.

How do I pack game content and include localization files?
The error that I am getting is as follows:

[2019.09.25-14.00.18:636][619]LogScriptCore: Warning: Script Msg: Attempted to access index 0 from array 'Tooltips' of length 0 in '/MenuStarterKitPlugin/MenuStarterKit/UserInterface/Widgets/Settings/WBP_Selection.WBP_Selection_C'!
[2019.09.25-14.00.18:636][619]LogScriptCore: Warning: Script Msg: Attempted to access index 0 from array 'Tooltips' of length 0 in '/MenuStarterKitPlugin/MenuStarterKit/UserInterface/Widgets/Settings/WBP_Selection.WBP_Selection_C'!
[2019.09.25-14.00.19:688][701]LogPackageLocalizationCache: Processed 12 localized package path(s) for 1 prioritized culture(s) in 0.319572 seconds
[2019.09.25-14.00.25:301][701]LogWindows: Warning: CreateProc failed: The system cannot find the file specified. (0x00000002)
[2019.09.25-14.00.25:301][701]LogWindows: Warning: URL: ../../../Engine/Binaries/Win64/CrashReportClient.exe "C:/Xenrai/Xenrai/Saved/StagedBuilds/WindowsNoEditor/Xenrai/Saved/Crashes/UE4CC-Windows-26A8A906455318BFFAB4178B51EC859C_0000" -AppName=UE4-Xenrai -CrashGUID=UE4CC-Windows-26A8A906455318BFFAB4178B51EC859C_0000 -DebugSymbols=..\..\..\Engine\Intermediate\Symbols
[2019.09.25-14.00.25:301][701]LogWindows: Could not start CrashReportClient.exe
[2019.09.25-14.00.25:301][701]LogMemory: Platform Memory Stats for WindowsNoEditor
[2019.09.25-14.00.25:301][701]LogMemory: Process Physical Memory: 1344.66 MB used, 3066.44 MB peak
[2019.09.25-14.00.25:301][701]LogMemory: Process Virtual Memory: 3548.82 MB used, 3754.72 MB peak
[2019.09.25-14.00.25:301][701]LogMemory: Physical Memory: 21418.26 MB used,  11272.95 MB free, 32691.21 MB total
[2019.09.25-14.00.25:301][701]LogMemory: Virtual Memory: 8281.20 MB used,  11272.95 MB free, 134217728.00 MB total
[2019.09.25-14.00.25:301][701]LogWindows: Error: === Critical error: ===
[2019.09.25-14.00.25:301][701]LogWindows: Error: 
[2019.09.25-14.00.25:301][701]LogWindows: Error: Fatal error!
[2019.09.25-14.00.25:301][701]LogWindows: Error: 
[2019.09.25-14.00.25:301][701]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION writing address 0x4daf0000
[2019.09.25-14.00.25:301][701]LogWindows: Error: 
[2019.09.25-14.00.25:301][701]LogWindows: Error: [Callstack] 0x000000002350122E VCRUNTIME140.dll!UnknownFunction []