Just like navidrome it seems like Jellyfin reacts to failed mounts by emptying libraries.
https://forum.jellyfin.org/t-solved-network-not-mounted-before-jellyfin-starts
With version 10.11.0 they offer a built in backup system for db/metadata/subtitles though so once access is restored it's easy to restore any metadata changes you've done to your library. (As long as you got a backup since before that is)
https://jellyfin.org/docs/general/administration/backup-and-restore/#create-a-backup