Crash in Packaged Build: 'Creating UObjects While Collecting Garbage'

When trying to launch the packaged build, it crashes and doesn't allow the game to start. The log indicates that the crash is caused by the following issue: “Creating UObjects while Collecting Garbage is not allowed”․

Below are some lines from the log related to the crash.

[2025.05.14-11.42.55:108][893]LogGarbage: Warning: Disregard for GC object RiveFile /Game/zSpaceContent/Game/Blueprints/HUD/Combat/GenericHUD/Health/RiveFile/Health.Health referencing RiveArtboard /Engine/Transient.RiveArtboard_2147482227 which is not part of root set [2025.05.14-11.42.55:108][893]LogGarbage: Warning: Disregard for GC object RiveFile /Game/zSpaceContent/Game/Blueprints/HUD/Combat/GenericHUD/Health/RiveFile/Health.Health referencing RiveViewModel /Engine/Transient.RiveViewModel_2147482226 which is not part of root set [2025.05.14-11.42.55:108][893]LogOutputDevice: Warning: Script Stack (0 frames) : [2025.05.14-11.42.55:109][893]LogWindows: Error: appError called: Fatal error: [File:C:\UE5\Engine\Source\Runtime\CoreUObject\Private\UObject\GarbageCollectionVerification.cpp] [Line: 155] Encountered 2 object(s) breaking Disregard for GC assumptions. Please check log for details. [2025.05.14-11.42.55:109][893]LogWindows: Windows GetLastError: The operation completed successfully. (0) [2025.05.14-11.42.55:194][893]LogSentrySdk: entering breakpad minidump callback [2025.05.14-11.42.55:194][893]LogSentrySdk: invoking on_crash hook [2025.05.14-11.42.55:204][893]LogWindows: Error: Error reentered: Assertion failed: !IsGarbageCollectingAndLockingUObjectHashTables() [File:C:\UE5\Engine\Source\Runtime\CoreUObject\Private\UObject\UObjectGlobals.cpp] [Line: 3419] Unable to create new object: SentryEvent /Engine/Transient.None. Creating UObjects while Collecting Garbage is not allowed!

I've also attached the relevant section of the main code that pertains to this part of the implementation and the .riv file that is used.

Note: We create an instance in the Construct function and initialize the values there.

Thanks. Any help or advice would be highly appreciated!

devenemyhealthshield.rivdevhealthandshield.riv