Are you using the Import/Export Settings
buttons in the settings page?
If you can reproducibly crash an instance then you should definitely file this as an urgent security issue in the lemmy repo so it can be fixed: https://github.com/LemmyNet/lemmy/issues