Most of the times getting NaNs mean that either something is wrong in your graph, or there is a bug somewhere in Natron or it’s plugins. If the graph is small enough, you can attach a project file and we can take a look at it.
Typical instructions that create NaNs are dividing zero by zero, and taking the square root of a negative number