Problems when changing the likelihood slightly

The error message suggests you have either nan sigma or nu in at least one of your HalfStudentT distributions. Can those P or P0 be zero when casted to int?

As a sanity check I would suggest you use keyword arguments nu and sigma when defining the distribution. There was a bug sometime ago when not passing the argument via keyword.