It might be that your definition is too complex and hits the computation time limit. Or any of the meshes in the model is too large and can’t be processed.
Could you try narrowing down the problem and post a minimal version of the definition reproducing the error?