Out of curiosity, and recognizing the limitations of my knowledge at this level of networking, would increasing the number of available ports as mentioned in the following: Plex Library Scans Initiate Hundreds of TCP_WAIT Sessions using up all available ports? - #4 by Wile_E be a viable temporary solution until an updated curl is released?
Please forgive my misinterpretation if this doesn’t apply.