Hey mbaskdn_22,
Thanks for posting here in Apple Support Communities. You've tried some great troubleshooting steps so far. Let's also have you start up your MacBook Pro in safe mode to see if your device shuts down. See: How to use safe mode on your Mac
How to use safe mode
Determine whether you're using a Mac with Apple silicon, then follow the appropriate steps:
Apple silicon
1. Shut down your Mac.
2. Turn on your Mac and continue to press and hold the power button until you see the startup options window.
3. Select your startup disk, then press and hold the Shift key while clicking “Continue in Safe Mode.”
4. Log in to your Mac. You might be asked to log in again.
Intel processor
1. Turn on or restart your Mac, then immediately press and hold the Shift key as your Mac starts up.
2. Release the key when you see the login window, then log in to your Mac.
3. You might be asked to log in again. On either the first or second login window, you should see ”Safe Boot” in the upper-right corner of the window.
Starting in safe mode will take a little longer than normal, because it verifies and repairs the directory, cleans caches, and loads only Apple-critical items.
Keep us posted on the results.
Thanks.