Refreshing all metadata gets stuck after a few library items

I think you did hit this problem - because these log lines are one of the manifestations of the problem

Jun 30, 2020 00:41:15.666 [19364] ERROR - Error issuing curl_easy_perform(handle): 7

Jun 30, 2020 00:41:15.666 [19364] WARN - HTTP error requesting GET http://127.0.0.1:49929/system/agents/update?mediaType=1&force=1&respectTags=0&guid=com%2Eplexapp%2Eagents%2Eimdb%3A%2F%2Ftt0143808%3Flang%3Den&id=11072 (7, Couldn't connect to server) (Failed to connect to 127.0.0.1 port 49929: Address already in use)

We could tweak the dynamic tcp port pool in windows (doubling its size) and adjust TIME_WAIT to try and avoid this issue with large libraries - or you could try the new movies scanner, which after a forum preview release, is now out as beta

See Release Note for beta 1.20.0 here

and the first item

  • New improved movie agent. (More info here )

The new scanner runs in-line and so avoids the high use of tcp ports that the old scanner with its separate process was using up