Welcome back AdilJamshadIhsan!
We appreciate you providing an update with your MacBook Pro. We'd like you to try starting your Mac in safe mode to see if the issue continues. Doing this step will allow your Mac to run certain checks and prevents software from automatically loading or opening. Here are the steps to do this: How to use safe mode on your Mac
Please note that it will take longer than normal for your computer to load. Also, your screen may flash and change colors. Do not be alarmed this is normal behavior when accessing safe mode.
After starting up in safe mode, reboot normally and test.
If the issue continues, we recommend that you get in touch with Apple using this link to look into the next best steps: Get Support
Best!