get StaleElementReferenceException error while using driver.navigate().back() in a loop in selenium

I have the following code, which gets a list of elements and then loops through it while using driver.navigate().back(); List<WebElement> listingWebElementList = driver.findElements(By.xpath...