%-th leading minor of the array is not positive definite

Hi,
I am having the same issue in some cases. Is there a solution other than hardcoding the hyperparameters?