Hello Tarun !
Thank you for posting on Microsoft Learn Q&A.
The real error is usually a few lines earlier in the VSTest logs (for example, no tests discovered, missing test adapter, or failing tests).
Open the VSTest task logs and check for messages like no tests were found, test adapter not found, or any stack trace before DTAExecutionHost.exe.
Verify that your Test files pattern (for example **\*test*.dll) matches the output of your build and that you’re using the right test framework settings (Use .NET Core on/off).
If you’re using distributed test / multi agent options, try disabling them and run tests as a simple VSTest task.
Try running dotnet test or vstest.console.exe locally with the same test DLLs to see the detailed error.