Keys stop working after a while

My secret and public keys stop working after a while.
What could be happening?

Thanks!