Hi there,
I have the same problem with 2.37.8. Moreover there is another error shown while exporting to the Excel : Failed - Server problem

Yes it was reported a year ago but the issue has not been resolved yet:
https://dhis2.atlassian.net/browse/DHIS2-11705