Performance of Sankey diagram when there is large data

I’m having trouble using react-plotly.js to create a sankey diagram in a NextJS project
I created a project with sample data like this, and it crashed, you can make it work by keeping 4 values ​​for each part.

Here is link: https://jsfiddle.net/hongquanhak/chopd3sf/24/

Is there any way to improve performance for this problem?

Updated link: Error sankey diagram if large data - JSFiddle - Code Playground