The Google Pixel 6 and Pixel 6 Pro have experienced unusually large numbers of bugs. However, users of the Pixel 6 series have complained that the Google Messages app causes their cameras to always run in the background because of a bug.
You can drain the battery of your device when a running app, such as the camera app, does not stop running in the background. Users of the Pixel 6 and Pixel 6 Pro complain about exactly that. Taking photos through the Google Messages app is one of the situations causing this problem.
It has been reported that even using “Quick Tap to Snap” causes the camera to overheat and drain its battery. It is advisable to shut down the Messages app if it is open on your Pixel 6 or Pixel 6 Pro if they become too hot for cooking breakfast.

In addition, there is a quick fix. A simple way to remove this bug is to deny the messages app access to your camera. If the battery on your Pixel 6 series device is dwindling too fast, go to Settings > Apps > Messages > Permissions > Camera and select “Don’t allow.” Take a look at whether that helps.
It’s also possible to remain patient. Scott Westover, Google’s communication manager, told The Verge that the issue had been identified and a fix is underway. Keep an eye out for an update.
It’s just a matter of opening the Play Store, tap on the profile picture at the top of the screen, and going from there. Go to Manage apps & devices, then look at Updates available. If any are available, tap “Update all.”
Google has already begun working on this. It will be available very soon.