Hi,
You can use the anomaly detection 85 mode to find where in the backward the nans appeared.
Then you need to make sure you’re not using a function at a point where it’s gradient does not exist, like log at 0 or sqrt at 0 etc.