Hi Mate,
This might happen when there might be a service limitation. Composing a large number of models into a single model might exceed the service's limitations or scalability thresholds. Check the documentation once.
Composing a large number of models requires significant computational resources and memory. It's possible that the composition process is exhausting the available resources, resulting in the internal server error.
If the models being composed have dependencies or compatibility requirements, it's possible that certain combinations of models are causing conflicts or errors. Check if there are any specific requirements or restrictions mentioned in the documentation for composing models together.
Or it might be a temporary error.
Please check this and let me know if you need any further assistance.