Google has found a way to fix Pixel 2 and Pixel 2 XL random reboots, but you'll have to wait
According to a Google official, although the company's engineers have identified a fix, the update containing it will arrive “in the coming weeks,” which could mean anything from one to several weeks.
The good news is we're already at the end of November and Google should deliver the December security update to all compatible Nexus and Pixel devices. Well, the update aimed at Pixel 2 and Pixel 2 XL could include this specific fix as well.
source: Google via AndroidPolice
Things that are NOT allowed: