It happened to me too, few times in a short drive.
In my case was the IPhone Bluetooth connection.
I restored my iPhone and since then the Tesla was not able to connect and the screen was rebooting.
Once I deleted the phone and reconnect the IPhone to my Tesla Model X, the problem disappear.