Calling NvAPI_D3D1x_Present stuck

I am developing an application on a multi-graphics card server。 Use DX11 to create and render a full screen window for each graphics card, and use NvAPI_D3D1x_Present to achieve window synchronization.
Multiple windows are created, rendered, and released using independent threads. During the test, it was found that the thread occasionally got stuck, debugging found that the API NvAPI_D3D1x_Present did not return. This problem will not occur when using IDXGISwapChain::Present.
Has anyone encountered this problem and how to avoid it.