nvoglv64.dll crash from vkQueuePresentKHR with crash dump

If I start my Vulkan application and resize the rendering window just as the application has started, I randomly get an Access violation in nvoglv64.dll, and the callstack is from the vkQueuePresentKHR function.

The problem only appears if I send the old swapchain to the VkSwapchainCreateInfoKHR struct when creating a new vkCreateSwapchainKHR, after the window has resized. If I send in a nullptr as the old swapchain, the error never occurs.

I don´t get any information from the validation layers that anything is wrong. And I have the VK_LAYER_LUNARG_standard_validation turned on.

Before and after I create a new swapchain and recreate the framebuffers for that Renderpass, I call vkDeviceWaitIdle. I have put vkDeviceWaitIdle after almost all calls and the error still appears.

Crash dump file:

Quadro P5000
Version 416.30