Unknown API key error

I am trying to pull data through Polygon using Alpaca trade api.
However, it seems like the API key doesn’t always work. I can fix it after I reset my API key. Can someone please help me understand why my key expires frequently?
Thanks for the help.

+1 on this question.