Is it possible to change the Site sharing settings using PnP PowerShell or SPO PowerShell? This includes 'Sharing permissions' as well as 'Access Requests'. These settings for any site can be found under:
Settings > Site permissions > Change how members can share