Test keeps initializing

Using the API I start my tests in a loop.
The first 6 test execute without issue.
The 7’th time I execute the test, the test remains in the state initializing, never starting.
Why is this, how can I work around it so that it doesn’t happen again.

2022-06-16 07:44:37.031 INFO EventThread i.t.a.b.c.a Server requested the Agent to execute {“executionId”:26011217,“agentId”:2538826,“executionGuid”:“bPr5aTXDaEiap8IrQQH-5Q”}
2022-06-16 07:44:37.031 INFO EventThread i.t.a.b.b.a Downloading execution package bPr5aTXDaEiap8IrQQH-5Q
2022-06-16 07:44:37.314 ERROR EventThread i.t.a.b.a.d GET https://api.testproject.io/api/v1/executions/bPr5aTXDaEiap8IrQQH-5Q - 404 (00000000): No executions exist for agent
2022-06-16 07:44:37.315 WARN EventThread i.t.a.b.b.a Failed to download execution package bPr5aTXDaEiap8IrQQH-5Q
2022-06-16 07:44:37.315 INFO EventThread i.t.a.m.w.b Initializing Agent for execution [bPr5aTXDaEiap8IrQQH-5Q]
2022-06-16 07:44:37.315 INFO EventThread i.t.a.b.b.a Reporting execution state ‘Executing’ for package bPr5aTXDaEiap8IrQQH-5Q
2022-06-16 07:44:37.398 INFO jersey-client-a i.t.a.b.a.d PUT https://api.testproject.io/api/v1/executions/bPr5aTXDaEiap8IrQQH-5Q/state - 200 (00000000): State was updated
2022-06-16 07:46:38.182 INFO EventThread i.t.a.b.c.a User 891282 has disconnected
2022-06-16 07:47:08.187 INFO EventThread i.t.a.b.c.a Signal disconnected - ping timeout
2022-06-16 07:47:08.194 INFO disconnect-entr i.t.a.m.K Checking Agent’s connectivity with the outside world…
2022-06-16 07:47:08.327 INFO disconnect-entr i.t.a.m.K Connection established successfully.
2022-06-16 07:47:08.327 INFO disconnect-entr i.t.a.f.c.a.k Direct connection (no proxy) is possible.
2022-06-16 07:47:08.327 INFO disconnect-entr i.t.a.f.c.a.k External connectivity is possible, proceeding to Authentication…
2022-06-16 07:47:08.329 INFO auth-entry i.t.a.f.c.a.a Trying to load Agent remote identity…
2022-06-16 07:47:08.333 INFO auth-entry i.t.a.f.c.a.a Agent is registered as [Agent op Salves Laptop] (UnrlKnT1CEq-cCLBNZIsZw), proceeding to authentication…
2022-06-16 07:47:08.333 INFO auth-entry i.t.a.b.c.a Sent shutdown event to Signal server
2022-06-16 07:47:08.334 INFO auth-entry i.t.a.b.c.a Disconnecting Signal as part of the SignalClient stop sequence
2022-06-16 07:47:08.335 INFO auth-entry i.t.a.f.c.a.a Authenticating with TestProject…
2022-06-16 07:47:08.335 INFO auth-entry i.t.a.s.c Requesting authenticating token…
2022-06-16 07:47:08.459 INFO auth-entry i.t.a.s.c Authenticated successfully
2022-06-16 07:47:08.484 INFO state-machine i.t.a.f.c.a.h Starting Signal…
2022-06-16 07:47:08.725 INFO EventThread i.t.a.b.c.a Signal connected, awaiting authentication result…
2022-06-16 07:47:08.725 INFO EventThread i.t.a.b.c.a Sent empty Session ID
2022-06-16 07:47:09.760 INFO EventThread i.t.a.b.c.a Signal authentication finished
2022-06-16 07:47:09.761 INFO EventThread i.t.a.b.c.a Connection Session ID: n0ZUCw0Cs_
2022-06-16 07:47:09.761 INFO EventThread i.t.a.b.c.a Signal authorized
2022-06-16 07:47:09.936 INFO idle-entry i.t.a.b.a.d POST https://api.testproject.io/api/v1/agent/certificate - 200 (00000000): No Message
2022-06-16 07:47:09.947 INFO idle-entry i.t.a.w.b Added SSL connector
2022-06-16 07:47:09.947 INFO idle-entry i.t.a.s.IdentityManager Requesting remote identity…
2022-06-16 07:47:09.999 INFO idle-entry i.t.a.b.a.d GET https://api.testproject.io/api/v1/agent - 200 (jJ9svhGo): No Message
2022-06-16 07:47:10.009 INFO idle-entry i.t.a.s.IdentityManager Agent identity has been saved
2022-06-16 07:47:10.009 INFO idle-entry i.t.a.f.c.a.d Account plan: Free
2022-06-16 07:47:10.009 INFO idle-entry i.t.a.h Refreshing & reporting capabilities…
2022-06-16 07:47:10.063 INFO idle-entry i.t.a.m.c.a Requesting ADB version from C:\Program Files\TestProject Agent\app\android-sdk\platform-tools\adb.exe
2022-06-16 07:47:10.138 INFO idle-entry i.t.a.m.c.a Detected Java [13.0.1]
2022-06-16 07:47:10.138 INFO idle-entry i.t.a.m.c.a Detected DotNet [3.1.22]
2022-06-16 07:47:10.138 INFO idle-entry i.t.a.m.c.a Detected DotNet [5.0.13]
2022-06-16 07:47:10.138 INFO idle-entry i.t.a.m.c.a Detected ADB [1.0.41]
2022-06-16 07:47:10.148 INFO idle-entry i.t.a.m.c.a Detected Chrome driver [101.0.4951.54] x64
2022-06-16 07:47:10.148 INFO idle-entry i.t.a.m.c.a Detected Chrome driver [101.0.4951.67] x64
2022-06-16 07:47:10.148 INFO idle-entry i.t.a.m.c.a Detected Chrome driver [99.0.4844.84] x64
2022-06-16 07:47:10.148 INFO idle-entry i.t.a.m.c.a Detected Edge driver [101.0.1210.39] x64
2022-06-16 07:47:10.148 INFO idle-entry i.t.a.m.c.a Detected Edge driver [101.0.1210.47] x64
2022-06-16 07:47:10.148 INFO idle-entry i.t.a.m.c.a Detected Edge driver [102.0.1245.30] x64
2022-06-16 07:47:10.148 INFO idle-entry i.t.a.m.c.a Detected Edge driver [102.0.1245.33] x64
2022-06-16 07:47:10.148 INFO idle-entry i.t.a.m.c.a Detected InternetExplorer driver [11.914.17763.0] x64
2022-06-16 07:47:10.150 ERROR idle-entry i.t.a.f.d Failed to get amount of available CPU cores
java.lang.IllegalStateException: Unmapped relationship: 7
at com.sun.jna.platform.win32.WinNT$SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX.fromPointer(WinNT.java:3033)
at com.sun.jna.platform.win32.Kernel32Util.getLogicalProcessorInformationEx(Kernel32Util.java:715)
at oshi.driver.windows.LogicalProcessorInformation.getLogicalProcessorInformationEx(LogicalProcessorInformation.java:61)
at oshi.hardware.platform.windows.WindowsCentralProcessor.initProcessorCounts(WindowsCentralProcessor.java:155)
at oshi.hardware.common.AbstractCentralProcessor.(AbstractCentralProcessor.java:74)
at oshi.hardware.platform.windows.WindowsCentralProcessor.(WindowsCentralProcessor.java:66)
at oshi.hardware.platform.windows.WindowsHardwareAbstractionLayer.createProcessor(WindowsHardwareAbstractionLayer.java:60)
at oshi.util.Memoizer$1.get(Memoizer.java:87)
at oshi.hardware.common.AbstractHardwareAbstractionLayer.getProcessor(AbstractHardwareAbstractionLayer.java:68)
at io.testproject.agent.f.d.b(TestProjectAgent:76)
at io.testproject.agent.managers.c.a.a(TestProjectAgent:173)
at io.testproject.agent.h.g(TestProjectAgent:477)
at io.testproject.agent.fsm.cloud.a.e.a(TestProjectAgent:114)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at io.testproject.agent.c.d.run(TestProjectAgent:33)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:830)
2022-06-16 07:47:10.201 INFO jersey-client-a i.t.a.b.a.d POST https://api.testproject.io/api/v1/agent/capabilities - 200 (00000000): Capabilities were received
2022-06-16 07:47:10.202 INFO idle-entry i.t.a.b.b.a Retrieving list of provisioned iOS devices…
2022-06-16 07:47:10.257 INFO idle-entry i.t.a.b.a.d GET https://api.testproject.io/api/v1/devices/provisioned - 200 (00000000): No Message
2022-06-16 07:47:10.258 INFO pool-3-thread-3 i.t.a.b.b.a Reporting state: Idle
2022-06-16 07:47:10.472 INFO idle-entry i.t.a.m.A Reported Agent state and got response - [Agent Version: 3.5.0]
2022-06-16 07:48:22.468 INFO qtp485223871-33 i.t.a.w.b.c EventsSocket 3d309ab3-5dbb-462c-81d2-7e1e69d18050 #3 disconnected: [1001] null
2022-06-16 07:49:03.784 INFO EventThread i.t.a.b.c.a Agent was requested to alter execution bPr5aTXDaEiap8IrQQH-5Q with Action: Abort

What happened?
Why was my test never started? Why did it keep initializing.
It kept initializing till I did a manual abort through the TestProject GUI

2022-06-16 08:32:29.142 INFO EventThread i.t.a.b.c.a Agent was requested to alter execution bPr5aTXDaEiap8IrQQH-5Q with Action: Abort

The request to start the test was
2022-06-16 07:44:37.031
And termination was
2022-06-16 08:32:29.142

That is more than 45 minutes.
What happened?

I’m also facing the same issue while running the test cases in virtual agents.