Error while updating ajaxPartial

Rarely, one out of 50-100 requests goes through with an error, what could this be related to?
image

Inside ajaxPartial
<a
      data-request="onAjax"
      data-request-update="{_self:true}"
     >
      {{ option.title }}
    </a>

This is interesting, the _self value is replaced in JavaScript. It looks for <div data-ajax-partial="..."> element, if this element is gone, the error will happen. Or check the console for browser errors.