Backend unresponsive/slow. 4hr+ refresh series task

Sonarr version (exact version): 4.0.11.2680-ls260 by linuxserver.io
Mono version (if Sonarr is not running on Windows):
OS: Ubuntu 22.04.5 LTS
Debug logs: sonarr.trace.txt - Google Drive
Description of issue:

The Sonarr backend is super slow or unresponsive. Seems like it might be have something to do with the refresh series task because it’s fine as long as that’s not running but it took over 4hrs to run so that’s a lot of the time. Trace logs attached.