Export query results

I am using the GDS library to run algorithms such as PageRank and Local Clustering on a graph with approximately 5 million nodes and 85 million edges. The algorithms execute successfully, but when I attempt to export the results to CSV or JSON, the system freezes. However, it works fine if I limit the query to a smaller number of results.