Welcome!
Just reviewing real quick, it looks like you have count data? If so, I am unclear why you have a Bernoulli likelihood, but then sum the expected number of failures and pass that along to a Normally distributed parameter. Why not just model the failure counts as a binomial?