Go step by step and test.
1. Click in the menu bar and choose “Force Quit”.
In the window that opens up, select “Safari” and click “Force Quit.
Relaunch 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. Please run EtreCheck and post the report here.
Download EtreCheck, https://etrecheck.com/maspro and post the report here
Click “Click to download” button,
Open Downloads folder, click on it to open, and then select ”Open”.
“Choose a problem” from the popup menu box, and then “Start EtreCheck” in the dialog.
Click “Share Report” button in the toolbar, select “Copy report” .
Paste the report when you reply.
Note
This is a diagnostic test.
If 5000 words limit applies:
Split the report into two parts and post as two separate posts.