Zoom Server-to-Server OAuth in multi-threaded environment

I am using zoom server-to-server OAuth with grant type account_credentials to consume Zoom REST API’s.
I have noticed that the existing access token immediately invalidates as soon as we request a new access token from zoom.
This is causing problem in multi-threaded environment in which one thread is gets new access token and going to use it to call a REST api, at same time another thread also request a new access token which make the access token hold by first thread invalided and the rest api of thread 1 is failed with invalid access token.

Is there any way to set invalidity interval for access token in zoom?