You have a org.openqa.selenium.StaleElementReferenceException: stale Element Reference. There are several questions & answers about it that can give you some feedback on your concern. Here is a sample:
Might even be as simple as adding before your “stale” element using: