GUYS I THINK I FOUND THE FIX.
I reinstalled iOS in my iPhone.Here's the steps for you to reinstall the iOS with your Mac-
So please connect your iPhone with your Mac first, then Press and quickly release the Volume Up button. Press and quickly release the Volume Down button. Then, press and hold the Side button until you see the recovery mode screen.
Then on your Mac, you will get the option to restore or update, choose Update. Your computer will try to reinstall iOS or iPadOS without erasing your data.
This has worked for me, Battery life is a lot better.
Also I don’t know how to reinstall with a Windows computer but I am sure the steps are online.