Sonarr silent crash after importing an episode

Sonarr version (exact version): 3.0.10.1567
Mono version (if Sonarr is not running on Windows):
OS: Debian 11 - Yunohost
Debug logs:

2024-02-04 21:04:03.8|Trace|Http|Req: 145 [POST] /api/v3/command (from 2a01:e34:ec5c:c630:4881:ba94:8ad8:ae01 Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0)
2024-02-04 21:04:03.8|Trace|CommandQueueManager|Publishing ManualImport
2024-02-04 21:04:03.8|Trace|CommandQueueManager|Checking if command is queued or started: ManualImport
2024-02-04 21:04:03.8|Trace|CommandQueueManager|Inserting new command: ManualImport
2024-02-04 21:04:03.9|Trace|Http|Res: 145 [POST] /api/v3/command: 201.Created (46 ms)
2024-02-04 21:04:03.9|Debug|Api|[POST] /api/v3/command: 201.Created (46 ms)
2024-02-04 21:04:03.9|Trace|CommandExecutor|ManualImportCommand -> ManualImportService
2024-02-04 21:04:03.9|Trace|CommandQueueManager|Marking command as started: ManualImport
2024-02-04 21:04:03.9|Trace|EventAggregator|Publishing CommandUpdatedEvent
2024-02-04 21:04:03.9|Trace|EventAggregator|CommandUpdatedEvent -> CommandModule
2024-02-04 21:04:03.9|Trace|EventAggregator|CommandUpdatedEvent <- CommandModule
2024-02-04 21:04:03.9|Trace|EventAggregator|CommandUpdatedEvent -> CommandModule
2024-02-04 21:04:03.9|Trace|EventAggregator|CommandUpdatedEvent <- CommandModule
2024-02-04 21:04:03.9|Trace|ManualImportService|Manually importing 13 files using mode Auto
2024-02-04 21:04:03.9|Trace|EventAggregator|Publishing CommandUpdatedEvent
2024-02-04 21:04:03.9|Trace|EventAggregator|CommandUpdatedEvent -> CommandModule
2024-02-04 21:04:03.9|Trace|EventAggregator|CommandUpdatedEvent <- CommandModule
2024-02-04 21:04:03.9|Trace|EventAggregator|CommandUpdatedEvent -> CommandModule
2024-02-04 21:04:03.9|Trace|EventAggregator|CommandUpdatedEvent <- CommandModule
2024-02-04 21:04:03.9|Trace|ManualImportService|Processing file 1 of 13
2024-02-04 21:04:03.9|Trace|EventAggregator|Publishing CommandUpdatedEvent
2024-02-04 21:04:03.9|Trace|EventAggregator|CommandUpdatedEvent -> CommandModule
2024-02-04 21:04:03.9|Trace|EventAggregator|CommandUpdatedEvent <- CommandModule
2024-02-04 21:04:03.9|Trace|EventAggregator|CommandUpdatedEvent -> CommandModule
2024-02-04 21:04:03.9|Trace|EventAggregator|CommandUpdatedEvent <- CommandModule
2024-02-04 21:04:03.9|Debug|Parser|Parsing string 'Les Soprano - 1x03 - À Bout de Souffle.mkv'
2024-02-04 21:04:03.9|Trace|Parser|^(?<title>.+?)(?:(?:[-_\W](?<![()\[!]))+S?(?<season>(?<!\d+)(?:\d{1,2})(?!\d+))(?:[ex]|\W[ex]){1,2}(?<episode>\d{2,3}(?!\d+))(?:(?:\-|[ex]|\W[ex]|_){1,2}(?<episode>\d{2,3}(?!\d+)))*)\W?(?!\\)
2024-02-04 21:04:03.9|Debug|Parser|Episode Parsed. Les Soprano - S01E03
2024-02-04 21:04:03.9|Debug|Parser|Language parsed: English
2024-02-04 21:04:03.9|Debug|QualityParser|Trying to parse quality for Les Soprano - 1x03 - À Bout de Souffle.mkv
2024-02-04 21:04:03.9|Debug|Parser|Quality parsed: HDTV-720p v1
2024-02-04 21:04:03.9|Debug|Parser|Release Group parsed:
2024-02-04 21:04:03.9|Debug|VideoFileInfoReader|Getting media info from /home/(removed)/transmission/completed/Les.Sopranos.S01.Multi.BluRay.1080p.x265-KFL/Les Soprano - 1x03 - À Bout de Souffle.mkv
2024-02-04 21:04:03.9|Trace|MediaInfo|Read file offset 0-49152 (49152 bytes)
2024-02-04 21:04:03.9|Trace|MediaInfo|Read file offset 824252374-824300669 (48295 bytes)
2024-02-04 21:04:03.9|Trace|MediaInfo|Read a total of 97447 bytes (0,0%)
2024-02-04 21:04:03.9|Debug|AggregateLanguage|Using language: English
2024-02-04 21:04:03.9|Trace|PreferredWordService|Calculating preferred word score for 'Les Soprano - 1x03 - À Bout de Souffle'
2024-02-04 21:04:03.9|Trace|PreferredWordService|Calculated preferred word score for 'Les Soprano - 1x03 - À Bout de Souffle': 0 (0 match(es))
2024-02-04 21:04:03.9|Trace|AggregateQuality|Considering Source Television (Fallback) Resolution 720 (Fallback) Revision v1 from FileName
2024-02-04 21:04:03.9|Trace|AggregateQuality|Considering Source Bluray (Tag) Resolution 1080 (Tag) Revision v1 from DownloadClientItem
2024-02-04 21:04:03.9|Trace|AugmentQualityFromMediaInfo|Resolution 1916x1080 considered 1080p
2024-02-04 21:04:03.9|Trace|AggregateQuality|Considering Source Unknown (Default) Resolution 1080 (MediaInfo) Revision  from MediaInfo
2024-02-04 21:04:03.9|Trace|AggregateQuality|Selected Source Bluray (Tag) Resolution 1080 (MediaInfo) Revision v1
2024-02-04 21:04:03.9|Debug|AggregateQuality|Using quality: Bluray-1080p v1
2024-02-04 21:04:04.0|Trace|PreferredWordService|Determining preferred word matches for 'Les Soprano - 1x03 - À Bout de Souffle'
2024-02-04 21:04:04.0|Trace|PreferredWordService|Determined preferred word matches for 'Les Soprano - 1x03 - À Bout de Souffle'. Count 0
2024-02-04 21:04:04.0|Debug|DiskProvider|Setting permissions: 777 on /data/series/The Sopranos/Season 1
2024-02-04 21:04:05.3|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
2024-02-04 21:04:05.3|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
2024-02-04 21:04:05.3|Debug|ProcessProvider| - [1495286] Sonarr
2024-02-04 21:04:05.3|Info|Router|Application mode: Interactive
2024-02-04 21:04:05.3|Debug|Router|Console selected
2024-02-04 21:04:05.5|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
2024-02-04 21:04:05.7|Debug|MigrationLogger|Took: 00:00:00.1930961
2024-02-04 21:04:05.7|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/logs.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
2024-02-04 21:04:05.7|Debug|MigrationLogger|Took: 00:00:00.0119085
2024-02-04 21:04:05.7|Trace|EventAggregator|Publishing ApplicationStartingEvent
2024-02-04 21:04:05.9|Trace|EventAggregator|ApplicationStartingEvent -> InstallUpdateService
2024-02-04 21:04:05.9|Debug|InstallUpdateService|Post-install update check requested
2024-02-04 21:04:06.0|Debug|InstallUpdateService|Built-in updater disabled, skipping post-install update check
2024-02-04 21:04:06.0|Trace|EventAggregator|ApplicationStartingEvent <- InstallUpdateService
2024-02-04 21:04:06.0|Info|OwinHostController|Listening on the following URLs:
2024-02-04 21:04:06.0|Info|OwinHostController|  http://127.0.0.1:8097/sonarr/
2024-02-04 21:04:06.0|Info|OwinHostController|  http://127.0.0.1:8097/
2024-02-04 21:04:06.0|Info|OwinHostController|  http://localhost:8097/sonarr/
2024-02-04 21:04:06.0|Info|OwinHostController|  http://localhost:8097/
2024-02-04 21:04:06.0|Debug|OwinAppFactory|Attaching NzbDroneVersionMiddleWare to host
2024-02-04 21:04:06.0|Debug|OwinAppFactory|Attaching SignalRMiddleWare to host
2024-02-04 21:04:06.0|Debug|OwinAppFactory|Attaching NancyMiddleWare to host
2024-02-04 21:04:06.5|Info|SonarrBootstrapper|Starting Web Server

Description of issue:

Hello, whenever my sonarr imports files after a download has completed it has a silent crash.
It imports one file and then restarts without any error message. Next import attemps it will import the next file and crash again.
It’s barely noticable for classic import as it eventually import all files after crashing multiple times.
But for manual imports from the Activity page, it means that I have to manually import each file even if it detects correctly all files to import. The logs show what happens when I hit the Import button in the Activity page.

You’re going to need to look at standard output/error for logs since Sonarr isn’t able to write to it’s own log file if the process dies unexpectedly.

Also upgrade Sonarr to v4 which has a lot of changes that may resolve this.

My problem was solved by downgrading to a previous version with Yunohost mechanism.
The problem reappeared when I tried to update sonarr it again through the update page.
So I just restored the previous version and decided to stop updating Sonarr through its own mechanism.