Plex randomly stopped detecting new media that's added, but a scan of the library will see it

with DEBUG server logging enabled (VERBOSE OFF)

Restart PMS.

Wait 5 minutes with it completely idle.

Now download the server logs.

Look for “No Space Left On Device” errors.

If you see these , the inotify table is full.