Hi,
I have exposed filter and ajax enable.
I am getting exact same issue atm and have applied patch above but no success.
Way to produce.
create view with exposed filter and ajax enabled.
When doing a first click ajax does work and content gets filtered as requested but second click wont filter and issue error same as above.
further debuging shows that dom_id attach to html element is different to ajax request so not able find the element to replace it.
Anyone having similar issue. Its in Drupal 10.0.5
Thanks