When a show matches the wrong series or loses a season, the folder name is the first thing I would check.
The docs are clear about the structure: series folders, then season folders under each series. A season folder is named Season * with a number in place of the star. Do not shorten it to S01 or SE01, and pad the number with a zero, for example Season 05, for the best results.
/shows/Series Name (2018) [imdbid-tt1234567]/Season 05/Series Name S05E01.mkv
The year and the metadata provider ID in the series folder are optional, but the docs say they help Jellyfin identify the show more reliably. Do not mix season folders with loose episodes in the series folder either.
Caveat: some characters are reserved. The docs say that including < > : " / \ | ? or * in names will cause problems. A colon in an episode title is easy to miss. Rename the file without it and rescan.
File names should also follow the name your metadata provider lists whenever possible, so a clean download name usually beats a creative one.
Further reading: Shows (Jellyfin documentation)
Going deeper: Guide: the Bazarr settings that matter, from languages to the minimum score