Similar to https://issues.jenkins-ci.org/browse/JENKINS-61314 (I'll link it)
I'm finding my EC2 Agents sometimes lose their connection during a large unstash (don't ask why. I'm working on that).
At that point I the Agent remains offline. I can see on the Agent side it's trying to ping the server every 5 minutes without success.
I'll add some logs in the comments