Last week, users of the Pixel 6 series began to complain extensively about a bug in the Google Messages app that caused the camera to constantly run in the background. When you have an app running all the time, especially one this resource-intensive, it causes the battery to drain quickly and heat up the smartphone.
This is exactly what Pixel 6 and Pixel 6 Pro users complained about, who only needed to open the Messages app to trigger this error. Also, using Quick Tap to Snap puts the camera in a suspended state in the background, causing overheating and draining the battery.
According to The Verge, Google public relations manager Scott Westover says the problem has been identified, and distribution of a fix for the bug has already begun.
Until the update arrives, you can use a quick workaround. Go to Settings > Apps > Messages > Permissions > Camera and select Do Not Allow.