What is the cause of the occurrence of "Token contains invalid signature." ?

Yumihiko Tsuzuki 41 Reputation points
2023-10-27T08:48:49.63+00:00
From the Android app under development, I was transferring files to a folder in OneDrive for Business repeatedly. 
It succeeded for the first nine times, but on the 10th attempt, I received a "401" error during the folder 
permission retrieval before the file transfer process.
===
2023/10/27 01:54:33.923 https://graph.microsoft.com/v1.0/drives/XXXXX/root:%2FXXXXX:/permissions ⇒ 200
2023/10/27 01:55:25.761 https://graph.microsoft.com/v1.0/drives/XXXXX/root:%2FXXXXX:/permissions ⇒ 200
2023/10/27 01:56:10.038 https://graph.microsoft.com/v1.0/drives/XXXXX/root:%2FXXXXX:/permissions ⇒ 200
2023/10/27 01:56:55.600 https://graph.microsoft.com/v1.0/drives/XXXXX/root:%2FXXXXX:/permissions ⇒ 200
2023/10/27 01:57:40.281 https://graph.microsoft.com/v1.0/drives/XXXXX/root:%2FXXXXX:/permissions ⇒ 200
2023/10/27 01:58:33.192 https://graph.microsoft.com/v1.0/drives/XXXXX/root:%2FXXXXX:/permissions ⇒ 200
2023/10/27 01:59:21.300 https://graph.microsoft.com/v1.0/drives/XXXXX/root:%2FXXXXX:/permissions ⇒ 200
2023/10/27 02:00:05.001 https://graph.microsoft.com/v1.0/drives/XXXXX/root:%2FXXXXX:/permissions ⇒ 200
2023/10/27 02:00:43.943 https://graph.microsoft.com/v1.0/drives/XXXXX/root:%2FXXXXX:/permissions ⇒ 200
2023/10/27 02:01:22.005 https://graph.microsoft.com/v1.0/drives/XXXXX/root:%2FXXXXX:/permissions ⇒ 401
===

The error details state "Token contains invalid signature." 
Please explain the cause of this issue and provide a workaround.
===
{"error": {
    "message": "Token contains invalid signature.",
    "innerError": {
        "request-id": "b52c4188-b435-4b90-a263-b3c0fe241243",
        "date": "2023-10-27T02:01:21",
        "client-request-id": "b52c4188-b435-4b90-a263-b3c0fe241243",
        "code": "invalidSignature"
    },
    "code": "unauthenticated"
}}
===
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,052 questions
0 comments No comments
{count} votes