@LuiseFreese The attempted operation is prohibited because it exceeds the list view threshold enforced by the administraor.
Or just about any error in SharePoint 😂
@kevmcdonk Looks to be an issue with the AuthorByLine property. If you use $select to specify any another columns it works fine (for me at least). Could also use the -Raw param of Invoke-PnPSPRestMethod then pass the resulting JSON to ConvertFrom-Json if you need the AuthorByLine property.
@kevmcdonk Interesting to think about, I'll definitely consider Invoke-PnPSPRestMethod next time I'm doing anything more than a couple hundred actions.