@mford7998a
Please attach the project in which this error occurs.
Try disabling "Windows Defender" and Windows firewall and other possible antiviruses that you have.
Create a variable called "counter". Than use "is element exist" to check if element exist and update "counter" variable whenever element is missing. Check counter variable in the loop, and fail thread if "counter" hit 3