Can you catch XY Chart crashing because of many data?

I was asked to develop a dashboard that query a large dataset of measurement data from database and display it on XY chart.

The large dataset is being pulled from db into a custom property just fine.
It is the displaying of these data into XY chart causing the view to crash.

Is there a way to gracefully catch the XY component crashing?

Or probably reduce the data by applying mathematical operation before displaying, you don’t need to display all data anyway.. (Sometimes it is hard to explain this to stakeholders)