swapchain: Added some error condition to follow vk-spec.