PowerShell Script to get All Alerts of all Users from a specific SharePoint Online Site Collection, including subsites:
https://github.com/VladilenK/PowerShell/blob/main/reports/Site/Fetch-All-Alerts-from-SPO-Site.ps1
based on Salaudeen Rajack:
“SharePoint Online: Get All Alerts from a Site Collection using PowerShell“