### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.

### Electron Version

15.3.0

### What operating system are you using?

macOS

### Operating System Version

10.14

### What arch are you using?

x64

### Last Known Working Electron version

13.0.0

### Expected Behavior

This line of code shouldn't crash the process:

```js
require ( 'electron' ).clipboard.read ( 'NSFilenamesPboardType' );
```

### Actual Behavior

It crashes the process.

### Testcase Gist URL

https://gist.github.com/995b1899ad086f727ee8698a246df3a3

### Additional Information

I think this is a fairly important issue, not only it crashes the process while it was working fine in Electron v13, but that's also the only way that I know of to get the file path of copied files under macOS, so not having that working cripples apps that use that.

/cc @codebytere as it may be related to what you might be working at the moment.
shell/common/api/electron_api_clipboard.cc
gin_helper::Arguments* args) {
  ui::ScopedClipboardWriter writer(GetClipboardBuffer(args));
  SkBitmap orig = image.AsBitmap();
  SkBitmap bmp;
  if (bmp.tryAllocPixels(orig.info()) &&
      orig.readPixels(bmp.info(), bmp.getPixels(), bmp.rowBytes(), 0, 0)) {
    writer.WriteImage(bmp);
  }
}
#if !defined(OS_MAC)
void Clipboard::WriteFindText(const std::u16string& text) {}
std::u16string Clipboard::ReadFindText() {
  return std::u16string();
}
#endif
void Clipboard::Clear(gin_helper::Arguments* args) {
  ui::Clipboard::GetForCurrentThread()->Clear(GetClipboardBuffer(args));
}
}  
}  
namespace {
void Initialize(v8::Local<v8::Object> exports,