Site Sharing settings with Powershell, PNPPowershell or Graph API

im looking for an solution to access the following setting with powershell, pnppowershell or graph api. I can’t find any option to do that. I found the option to disable it, but not to restrict it

With DisableSharingForNonOwners it also breaks the file sharing option.

enter image description here