Linear model with measurement error in X and Y

Thanks a lot !
According to my limited experience, divergent transitions easily emerges if there are transformed parameters which are non-linear functions of two or more pre-declared parameters. When I run my own stan model of Major Axis Regression, there are many divergent transitions. I don’t know how to handle the problem and hope for your help. Jacobian determinent
Thanks again!