Hello @Vivek Agrawal
The 0x80005000 means that "The specified directory service attribute or value does not exist". This may happen eventually under high workload of the authentication server, failure to connect (or timeout) to a Global Catalog when using Kerberos Auth.
You can use the next guide to check the GC readiness and health: https://social.technet.microsoft.com/wiki/contents/articles/11620.windows-server-2008-how-to-verify-global-catalog-server-readiness.aspx
I would also recommend to set some Performance counters for network load (TCP Max Connections) on your Authentication server.
Last, I would check if there is any special characters in your AD groups or users, as this could also produce the error as the String may not be recognized in the same way is launched.
Hope this helps with your query,
-------------
--If the reply is helpful, please Upvote and Accept as answer--