I’m sure you don’t want a workaround, you want a working solution – there’s difference.
Your problem is twofold.
-
That XPath is brittle. It’s too reliant on a lengthy document tree leading to the target element (the checkbox).
-
When you scroll, I imagine more page data is received which modifies the document tree and breaks the XPath in #1… because it’s so brittle.
For anyone to help you here, you need to provide more information. To help yourself, make that XPath less brittle.