ESP8266 (NodeMCU and Wemos D1 mini) won't boot or upload with particular devices

You're confusing voltage with current.

I suspect your relay when closed is drawing more current than the NodeMCU board can supply.