Potential Memory leak rendering VDB?

I imported a pretty heavy vdb fire simulation from Embergen (200 - 600 MB per frame) and I’m rendering it out in Blender.

I can render each individual frame just fine, but I can’t render more than 40 frames in a row before getting the error: System is out of GPU and shared host memory. I checked my VRAM, and it was ok, but my RAM was filling up. Blender would reach about 55 GB of my 64 GB of ram, then stop rendering. I could just start rendering the animation again from where it stopped, but this is a painful and slow process, especially for my 500 frame animation. Any ideas for a workaround or solution?

Specs:
CPU: AMD Ryzen 9 3900X
GPU: RTX 3090
RAM: 64.0GB DDR4
Blender 3.6.3

I tested it simply with a different file.

The result was stable memory usage and no problem.

We used blender 3.6.5 and blender 4.1.0 for this test, and we saw a positive memory reduction in blender 4.1.0. (blender 3.6.5 VRAM 2gb, blender 4.1.0 VRAM 1.2gb)

Try another version of the blender and update the graphics card driver.
If you’re using multiple VDBs, look for objects that cause problems.

Memory usage is said to be related to Render→ Precision.
https://docs.blender.org/manual/en/latest/modeling/volumes/properties.html

I was trying to troubleshoot one of my heavier scenes that had similar problem.
You can start with ./blender --debug-all --verbose 4 or --debug-memory and look for anything interesting.
https://docs.blender.org/manual/en/latest/advanced/command_line/arguments.html

Next step would be to run Blender through a debugger like gdb and make full backtrace if you can make Blender to crash. I did try that, but unfortunately haven’t found anything useful.
Lastly you can try to ask the developers if tools like ASAN can pick up leaks from OpenVDB and if this could be helpful.