There was a similar problem
but it is fixed at this point.
If the pop-up window is closing via a button I suggest trying to enable ClosesBrowser property of the click step and disable close pop-up step. Please find attached a screenshot for further reference.
You may try to introduce few seconds execution delay
before close pop-up step if decide to use this step.
If this does not resolve the problem would you provide further details on the Windows/Edge/Web driver and Test Studio versions you are using to reproduce the problem? What is the exception message you got when the test fails?
If possible please provide a sample test project with steps you are using when reproducing the problem.