Scan Library File - Maximum Name Length

I added two movies (to the same folder)

Harry Potter and the Deathly Hallows Part 1.mkv
Harry Potter and the Deathly Hallows Part 2.mkv

PLEX server only finds Part 1.

If I delete Part 1 then it finds Part 2.

If I rename the files to shorter names then the server both files.
i.e.
Harry Potter and the Deathly Hallows 1.mkv
Harry Potter and the Deathly Hallows 2.mkv

Is there a maximum name length limit when server scans for files or is this a bug?

Server Version#: 1.27.2.5929
Player Version#: 4.76.1

Plex probably found both but treated them as sequential parts of the same movie.
Make sure to include the year of the movie was released to your movie folders – e.g.

Movies   <- the folder linked to your movie library
  Harry Potter and the Deathly Hallows, Part 1 (2010)
    Harry Potter and the Deathly Hallows, Part 1 (2010).mkv
  Harry Potter and the Deathly Hallows, Part 2 (2011)
    Harry Potter and the Deathly Hallows, Part 2 (2011).mkv

https://support.plex.tv/articles/naming-and-organizing-your-movie-media-files/

I don’t use seperate folders (for each movie) but adding the year to end for movie name sorted out the issue. Thanks!