I’m not a pro of ODEs but I found one mention of the SingularException
on this page: Frequently Asked Questions · DifferentialEquations.jl
This also looks like a good resource for debugging: PSA: How to help yourself debug differential equation solving issues
PS: I commend your courage, this particular hand-coded 40-dimensional equation made my eyes bleed