I am trying to export a list with 28000 records into CSV file using this blog. I am using the PNP PowerShell approach. The issue I am facing is it breaks the session with below error:
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
Can anyone suggest any way through which I can generate a token that is valid for 24 hours or even longer?