The error is saying that cov_star is not full rank, so the matrix inverse is breaking. You could try adding some small numbers to the diagonal to stabilize it?
The error is saying that cov_star is not full rank, so the matrix inverse is breaking. You could try adding some small numbers to the diagonal to stabilize it?