PLEX movie issue - CPU death spiral

In my experience after a fresh install the issues start to appear within a week.

I wrote a short little script that attempts to load the XML of each item, and if it fails it will reload the item. https://pastebin.com/rqhyMeWT (python3 includeRelated.py server1 “Movies - 4K”)
I also had a version that skipped the reload and instead logged the affected files but I seem to have misplaced it.

Also, FWIW I’m running Ubuntu 20.04 with the official PMS docker.

Also, here’s my original post that contains more information if you need more background. "View XML" and playback of certain items makes Plex unresponsive. "includeRelated=1"

I wish I had a broken library to test with but I’ve migrated to the legacy agents until the new agents work for me again.