Hi katyhan123,
We recommend that you try the steps in the link below if Safari is not working as expected.
If Safari doesn't open a page or work as expected on your Mac - Apple Support
To perform the steps in the article we suggested above, click and open the link, read the subheadings below, and try each step.
1) Reload the page
2) Install software updates and restart
3) Check Safari extensions
4) Test with a private window
5) Check Safari settings
6) Check iCloud Private Relay
7) Check VPN or other security software
8) Check network settings
The reason why we are recommending the steps above is because they will show you what to do if Safari doesn't open a page or work as expected on your Mac.
If you’re experiencing issues with the Safari app not opening, then give the steps here a try: If an app on your Mac stops responding, closes unexpectedly, or won’t open - Apple Support
Please let us know the outcome after giving the above steps a try.
Thanks for using the Apple Support Communities.
Cheers!