Understanding error while sampling a model with conditional probabilities

As mentioned in a previous thread this may be due to an overflow somewhere. Try to go down the hierarchy with some dummy values to see the scale of the values of the variables as you go deeper.