Jellyfin/emby black screen

I get black screen and the video stops playing every now and then on jellyfin. Honestly it probably happens most when a new file is being imported from the torrent and/or nzb client into /mnt/mergerfs.