Unable to create a pivot table - in event reports with option sets

I recently upgraded my instance from 2.35 to 2.39

I have a program with a few data elements and attributes based on option sets. I can view the line list in event reports but when l change from line list to aggregate data the results does not even show… the system gets stuck. I checked the developers console and I am seeing Response.js:206 Uncaught TypeError: Cannot read properties of undefined (reading ‘code’)
at Response.js:206:42
at Array.map ()
at Response.js:205:1
at Array.forEach ()
at Response.js:202:10
at new Response (Response.js:218:6)
at Object. (InstanceManager.js:48:32)
at i (jquery.min.js:2:28017)
at Object.fireWith [as resolveWith] (jquery.min.js:2:28783)
at A (jquery.min.js:4:14017)

2 posts were merged into an existing topic: Error in generating Event Report for any data element linked with the Option set