A crash problem when I modify the UE4 to use device group

Hi, We want to use layer_factory to capture the Vulkan API, and then use some device group features. It works when we use Vulkan examples. But when we integrate it to UE4, the game crash when calling the VkAcquireNextImage. The return code of calling VkAcquireNextImage this API is VK_SUCCESS, the program crash when submitting the API. Can you give me any hit? Thanks.