I had the same problem with random rebooting of the Lumia 950XL. First I moved all my apps from the SD card to the internal memory. This seemed to solve the problem for a while, but the rebooting came back. Then I noticed that it happened mostly at night. So, I thought it might have something to do with a program that runs while the phone is used less. But I couldn't find a real reason why this was happening.
Then I read somewhere that the access to a WifFi access point might have something to do with the problem. Normally, when I'm at home, my phone is on my desk about a meter and a half from the WiFi access point. So I moved the phone to the other side of my desk, about a meter further away from the access point. I haven't had a reboot for days now! So, this afternoon I tested by moving the phone back to the original place, so one meter closer to the access point. Within ten minutes my phone started to reboot. I moved it away, and no reboot since then.
So it looks that moving it away form the WiFi access point really helped, at least in my case. It seems a strange problem to me, but if it helps... So, I hope this helps other people as well.