Hello @zainm and welcome to this community.
You may find a few hints there: Jenkins agent time off - #2 by poddingue .