Diva for Grasshopper Write Failed / Crash

I’ve been trying to run Diva iteratively through grasshopper and have been having issues.

I tried animating a slider to control the inputs to the annual daylight analysis component - 90% of the time it works, but the others I get an error that the Write failed “Cannot access a closed stream. raytrace loop encountered a break at 3”

I also tried controlling the inputs with galapagos which again works 90% of the time, but results in a hard crash of rhino. Rhino support returned this exception “System.ObjectDisposedException: System.IO.__Error.StreamIsClosed ()”

I am running the Diva component version I have also noticed in the console window, that its trying to convert back to an older version 4.0.3 for some reason.

Any help would be appreciated.