OK - before I get shot-down I know this post has nothing to do with Node-RED, but I know a number of people on this forum use Wemos D1 Minis (in conjunction with Node-RED) to collect data and operate devices and may have encountered this problem.
At random times the Wemos reboots. Whether this is a problem for you depends on what you are using the Wemos to do. Anyway, I think I may have found the cause and offer this solution.
I've been doing experiments on 'deepsleep' with a set of Wemos D1 Mini devices and encountered the problem with random reboots.
When I checked some of my other units, I found they were acting the same (rebooting at odd times).
Some would reboot in say 23 mins, others might go for 70 or 80 minutes.
Although there is a +3V3 regulator on the Wemos board, there isn't any reservoir capacitors.
So I took a Wemos D1 Mini (with all the correct logos and curved PCB) fiited it to a breadboard with a BME sensor (so I had something to measure) and added a 220uF and a 0.1uF capacitors from +5V to GND and +3V3 to GND.
i.e. four capacitors in total.
Each pair of capacitors are wired in parallel and stradle the two power rails.
The idea is the 220uF acts as a reservoir and helps maintain the voltage when sudden loads are applied, while the 0.1uF offers a low impedance path to ground for any nasty little spikes.
Note: I used 220uF capacitors because they were the only ones I had in my 'bits-n-bobs' box.
I'm sure you could probably use a smaller one (I'll do some experiments this week and/or try to find my textbook about how to calculate the size).
So far the Wemos has been running for 720 minutes without rebooting (which is a dramatic improvement).
I just thought I'd share this with the forum as other people could try it and see if it helps their situation.
It's a long time since I designed a power supply, but I suspect when the Wemos switches on the WiFi the current consumption rises dramatically.
If the power supply that is feeding the Wemos is poor, then the supplied voltage will fall for a short period of time (and if it falls too low the Wemos goes into reboot).