Sharing textures between openGL and DX11 crashes on 16th texture

We have some old code that uses WGL_NV_DX_interop2 to load openGL texture and renders to be shared and rendered by DX11.
Does anyone have any idea about why loading the 16th texture would cause wglDXOpenDeviceNV to return null (no error codes are being returned)?