How to increase max size for download links

Hi, I am having a dl link in a dashboard that allows the users to dl underlying data

csv_string = df.to_csv(index=True, encoding='utf-8')
csv_string = "data:text/csv;charset=utf-8," + urllib.parse.quote(csv_string)
return html.A(children='download data', id=f'dl_bar_{metric}', download=f"spx_markouts_{metric}_by_{'_'.join(groups)}.csv", href=csv_string)

However, the data can get quite large and chrome starts to fail the download for ‘network error’. (for IE, the dl link doesn’t appear to be working at all).
Is there a way to increase the size (which I guess is determined by the length of the href string)?