A music file that plays everywhere except in the browser is annoying. The Jellyfin music docs have two fixes that do not re-encode anything.
First, the FLAC case. The docs say FLAC files with embedded WebP images or ID3 tags may fail in Chromium-based browsers or Firefox. The setting to try is “Always remux FLAC audio files” in the client settings.
Second, the container case. Audio-only files in MP4 should be named .m4a, audio-only MKV or WebM files should be .mka, and WebA files should be renamed to .mka because .weba is not supported. For a problem file the docs suggest remuxing:
ffmpeg -i input.mkv -c:a copy output.mka
-c:a copy keeps the audio stream as it is, so the sound is not touched. Only the wrapper changes.
Caveat, straight from the docs: metadata and images may not carry over, so you may have to restore them by hand. That is why I would try the client setting first and keep the remux for files that still fail. Write the output to a new file, check that it plays, and only then think about replacing the original.
Further reading: Music (Jellyfin documentation), ffmpeg documentation
Going deeper: Guide: the Bazarr settings that matter, from languages to the minimum score