When users create SharePoint sites, By default access requests and Sharing are enabled. I would like to disable this feature globally on my SharePoint online Tenant.
You can refer to the powershell in the article below:
To change access request Emails of all sites in a site collection or tenant：
To disable access request, simply clear the Email value.
Please note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.