Go step by step and test.
1. Click in the menu bar and click Force Quit.
Confirm it.
Launch Safari holding the shift key down.
2. If Safari is slow, stops responding, quits unexpectedly, or has other issues
https://support.apple.com/en-us/HT203353
Section: Manage Extensions
https://support.apple.com/guide/safari/use-safari-extensions-sfri32508/mac
3. Enable Develop menu and Empty Caches
https://support.apple.com/guide/safari-developer/develop-menu-dev39df999c1/mac
4. Remove cookies and website data.
Manage cookies and website data:
https://support.apple.com/guide/safari/manage-cookies-and-website-data-sfri11471
5. Sometimes third party software can cause this kind of a problem.
Please run EtreCheck and post the report here.
https://etrecheck.com
Download it, open Downloads folder, click on it to open and select ”Open”.
Select a problem from the “Choose a problem” popup menu box, and then “Start EtreCheck” in the dialog.
Click “Share Report” button in the toolbar, select “Copy to Clipboard”, and then paste it when you reply.