you can create a generic selector that closes the oup-up window. You might need few popups to generate this generic selectors.
the you can use a global Exception handler that will have that generic selector in element exists and click activity in it to check if there is a poup and if yes, it will close it and retry the failed selector.
You can close that pop-up using the global exception handler xaml and make it to continue.
Or you can use parallel activity to achive if any particular xaml alone
Let me elaborate further.
While launching a application bot was asking to choose the respective browser. Even though the default browser selected as MS edge we are getting this unexpected popup sometimes hence leading to system exception
Popup window is
How do you want to open the file?
Microsoft Edge
Other Options