All related documentation on this blog: https://www.concret.io/tech/security-stripinaccessible-bug-with-protected-custom-settings/
abhinavguptas/sf-managed-package-custom-setting-stripInaccessible
Demonstrates the issue of Protected Custom Settings bug with Security.stripInaccessible() method
Apex