UPnP hasn't crashed since I made the aforementioned modification. Other than that, I had some Windows settings to tweak, and I lowered the UPNP_REFRESH value along with some of the related variables (lowered the SSDP one too). I think to 15 and 20, respectively... but that probably was unnecessary.