Started getting "com.auth0.jwk.SigningKeyNotFoundException: Cannot obtain jwks from" suddenly


I have a JWT identity token signature verification java method for verifying the Azure id token. This was working till today and all of a sudden I am starting to get the exception "com.auth0.jwk.SigningKeyNotFoundException: Cannot obtain jwks from url{tenantId}/discovery/v2.0/keys"

This exception is thrown when retrieving the JWK from JwkProvider. The exact statement where it fails is

Jwk jwkOfToken = jwkProvider.get(kid);

I have been reading the posts in the community and noticed a similar issue via this post in Nov’19

Can anyone please look into this issue?