The issue might be with the OpenID Connect scopes: here is the documentation for getting the Open id scopes for the required scopes:
----------
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".