Found the root of the velocity problems (I think). Added a check guard for CdA to see if it becomes NaN, which should stop the error.