How to handle WebDriverException error

I’m getting this error when automating a test with the RPA.Browser.Selenium library. It works up to a point, but then it gives this error. The chromedriver version I’m using is the same as the browser.

If it works to a point then its not an issue with webdriver? What keyword throws that error?

The keyword is Go To. The test opened a new window and then back to the previous one.

How are you properly handling switching between windows? Could you share relevant part of your code?