AI Config's allocation is negated by AI Clear, which cleans up the buffer. As long as you're calling both VIs every time, you should be fine.
What might be happening is LabVIEW could slowly be running out of memory for the reason I mentioned earlier or possibly for another reason not yet known. And when enough memory has been exhausted, the very next AI Config tries to allocate a buffer too large given the available memory in Pharlap.
I recommend making the modification to AI Read anyway, but also check your
target memory periodically to see if there's a memory leak while running that example continuo
usly.