Although Google has a rich experience with Android devices, some of its latest Pixel handsets are now affected by an ancient plague: random shutdowns. After quite a few such incident reports that have been posted on Reddit recently, it seems that the cause of this problem — thankfully — software-related.
https://www.notebookcheck.net/Trouble-in-paradise-Google-Pixel-3a-3a-XL-users-are-facing-random-shutdowns.421267.0.html