Does this help?
This problem seems to keep resurfacing in different guises on Windows.
I have a program in c++ that generates the xml file based on other input data. It has been working for years for many different inputs. This is the first time the xml file exceeds 2GB.
https://gitlab.kitware.com/paraview/paraview/-/issues/19628
It has not been fixed because it needs to be resolved in CMake and the documentation on how to use vtk_module_definitions() is practically useless.
https://gitlab.kitware.com/paraview/paraview/-/issues/21145