### 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::Clipboard* clipboard = ui::Clipboard::GetForCurrentThread();
  ui::ClipboardFormatType format(
      ui::ClipboardFormatType::GetType(format_string));
  if (format.GetName().empty())
    format = ui::ClipboardFormatType::CustomPlatformType(format_string);
  return clipboard->IsFormatAvailable(format, GetClipboardBuffer(args),
                                       nullptr);
}
std::string Clipboard::Read(const std::string& format_string) {
  ui::Clipboard* clipboard = ui::Clipboard::GetForCurrentThread();
  std::map<std::string, std::string> custom_format_names;
  custom_format_names =
      clipboard->ExtractCustomPlatformNames(ui::ClipboardBuffer::kCopyPaste,
                                             nullptr);
#if defined(OS_LINUX)
  if (custom_format_names.find(format_string) == custom_format_names.end()) {
    custom_format_names =
        clipboard->ExtractCustomPlatformNames(ui::ClipboardBuffer::kSelection,
                                               nullptr);
  }
#endif
  CHECK(custom_format_names.find(format_string) != custom_format_names.end());
  ui::ClipboardFormatType format(ui::ClipboardFormatType::CustomPlatformType(
      custom_format_names[format_string]));
  std::string data;
  clipboard->ReadData(format,  nullptr, &data);
  return data;
}
v8::Local<v8::Value> Clipboard::ReadBuffer(const std::string& format_string,