How do configure syncthing in a NetBSD compatible way?

It seems like there are multiple reports of syncthing NetBSD (or OpenBSD) quickly running into too many open files: 1. Too many open files on NetBSD - where to start? 2. OpenBSD too many open files

The solution in these seems to be for users to unexpectedly run into the error, then scramble to somehow adjust the limits.

However, it almost seems like this NetBSD is meant to be somewhat official and patched up as needed - which I hope it is & I encourage you to do and would love to help test out! But then I’m wondering:

  1. Is it possible to instead configure syncthing to chill out and operate within the default limits of NetBSD in a reasonable manner?

  2. Would it perhaps make sense to have this configuration by default, and/or warn the user as soon as the UI opens at least that limits may need to be adjusted first?

Letting the sync start and all these errors happen later unexpectedly is a bit scary, since e.g. it may make the user wonder if any files will be lost due to this or what exactly is going on. So that this seems to be the current default situation, which I would love to help improve.

If there are any config ideas for syncthing I should try, to see if they fit in with the default NetBSD limits (that I’m currently using), let me know and I’ll test!