If you call the validate endpoint, it’ll give you the time left (in seconds) on the token.
I usually only generate a new token when there is less than 30 minutes on the token, using a service that runs every 15 minutes
Your message here:
Suggests you are regenerating more often
So your token should be good.
I’m not sure what is breaking where in your workflow.