Usually that error is related to an issue with the request. Have you checked to make sure there isn't an extra space or something in the URL that could cause this? Can you include the full response for me? https://github.com/microsoftgraph/microsoft-graph-docs/issues/3539
Are you able to see the logs in the portal?
One way to check is in the Security and Compliance Center under "View Reports." There you can view Sharepoint audit logs. https://learn.microsoft.com/en-us/microsoft-365/compliance/reports-in-security-and-compliance?view=o365-worldwide
You can also check the Azure AD sign-in and activity reports. https://learn.microsoft.com/en-us/microsoft-365/compliance/reports-in-security-and-compliance?view=o365-worldwide
In Office 365, we can use the default Reports in Admin Center (Office 365 Reports in the Admin Center - SharePoint activity).Or we can also use PowerShell to export all Office 365 users' last login dates to a CSV file.
In SharePoint on-premise, we can also use PowerShell with server code to achieve it.