Your laptop is almost 8 years old (purchased Dec. 2018). Most Apple Lithium batteries need to be replaced between 3-5 years although some may last longer depending on how long a user needs to run on just the battery.
Your third screenshot of the Battery System Settings does not appear to show any problems, but it also doesn't seem to show a powered off laptop since data is available from 6am to about 4am the next day. I think the laptop was still powered on. You can run the following Terminal command to show the status of the laptop over two days (it will show when it is going to sleep, waking up, and when it is powered on as well as the battery charge level at those times):
pmset -g log | grep -iE 'Sleep |Wake |Start ' | grep -iE '^2025-10-23|^2025-10-24'
There must be exactly two spaces after the "Sleep ", "Wake ", and "Start " filters. The command shown, will only show results for the two dates listed so you can get the data for the night & early next morning hours....you may change the values for the dates you want to review.
Also, why don't you leave the laptop connected to the power adapter overnight? It is best just to leave the laptop connected to the power adapter whenever you are able especially if you left the default Optimized Battery Charging option enabled.
Edit: Removed incorrect information about copying & pasting the command....appears the issue only occurs while composing.