pritheesh64 wrote:
is there any way to turn off this automatic shutting down .. this only happens after the macos tahoe update
No. It appears to be shutting down because the battery has run out of power at 10% charge either due to very heavy system usage, or due to a failing battery.
You neglected to mention the exact model of your Mac which is very important to note when asking for assistance online. You can get this information by clicking the Apple menu & selecting "About This Mac".
FYI, most Apple Lithium laptop batteries usually need to be replaced sometime between 3-5 years old, but some may need replaced sooner (rare), or get a few extra years out of it. Some of it depends on how the user utilizes their laptops & how much time they need the battery to last. If a person only needs the battery to last an hour or two, then they may be happy with their battery beyond the 5 year mark.
Unfortunately there is no easy way to monitor the battery on an M-series Mac. Even on an Intel Mac monitoring the battery at the necessary level requires analyzing the output of a Terminal command over time (on the M-series Mac, Apple broke the command as it displays incorrect information). I had to create a custom script to allow myself easier testing of my organization's Apple laptop batteries so I could detect & confirm battery failures.