Hello akulik512,
Let's use the steps below to boot your MacBook Pro into safe mode to see if that behavior persists from there:
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.
You can also find those steps in this resource: How to use safe mode on your Mac - Apple Support
It can take a few extra minutes to boot into safe mode. Your screen may flash or flicker while in safe mode. Those behaviors are expected. Testing in safe mode runs a check on your disk, removes some cached files, and can help isolate conflicts with startup items. Once you've tested that behavior in safe mode, you can restart to leave safe mode.
Should that still persist, have you had the opportunity to try connecting your MacBook Pro to another Wi-Fi network?
Let us know, and we'll keep moving forward from there.