Hi @ah-pg
The sign-in error code 65002 occurs when a developer in your tenant attempts to reuse an App ID owned by Microsoft. This situation prevents them from impersonating a Microsoft application to call other APIs.
There's a similar thread here, and you can refer to the steps provided by @brtrach-MSFT to fix this.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.