Export Metadata Giving 500

Hi Folks,

I am facing issue while i try to download the Metadata for Visualisations and get 500.

When I try to search for logs, none of the logs show any relevant information for the failure. I have checked below logs

dhis.log
localhost_access_log.text - Has info but just the api details and status code
localhost.log
catalina.out

This is happening only with the Visualisation Metadata Export and none other Exports.

Version for which this is happening is 2.37.8.1-SNAPSHOT

API Call: GET /api/metadata.json?skipSharing=true&visualizations=true&dashboards=true&eventCharts=true&eventReports=true&download=true

@Gassim @DHIS2-Community @dhis2-backend