If your server can’t talk to Plex.tv (DNS or Gateway) then fix that first.
These are in the DSM Control Panel → Network → Network interface
else
It’s a race condition (when there are no config errors) which is tough as heck to find. (after 2 years). Most cases are that a comm error causes the NULL to get written and lock it up