TestProject Agent registration fails in the middle of execution

For the last few days, I have had issues with the TestProject agent.
The Agent that was running normally for very long suddenly fails to Register.
I deleted the agent, downloaded the latest one and then registered it. The scripts worked fine for a day. However, from today onwards I see that the scripts have stopped running and logs show that the agent registration has failed.

I am unable to attach the logs in here. Also allowed to add just 2 links.
Agent Version: 3.5

2022-07-21 00:23:52.237 INFO clear-agent-wor i.t.a.b.a.d POST https://api.testproject.io/executions/progress/projects/Qzag7Ifs7EyV0zhalUqj0Q/executions/bl1eBKjwvEuSkwowZpNGLw/progress - 200 (qPkQBaPz): No Message
2022-07-21 00:23:53.635 WARN pool-9-thread-1 i.t.a.f.o Registry query failed - ERROR: The system was unable to find the specified registry key or value.

I am suspecting something going wrong with pool threads. Can I get some help on this? Any leads are greatly appreciated.