Backup your Mac.
Close all windows and quit all applications.
Hold "option" key down and click "Go" menu in the Finder menu bar.
Library will appear between “Home” and “Computer” entries in the dropdown.
Select "Library" from the dropdown.
Click the “List” view button in the Finder toolbar.
Move these files to trash and test.
1. Click open the Caches folder and scroll down the list.

Click open the com.apple.Safari folder.
You should see the Caches.db file.

Right click on it and choose “Move to Trash”.
2. Scroll down the list, click open the Safari folder and select History files.

Right click on it and choose “Move to Trash”.
3. Scroll down the list and click open the Saved Application State folder.

You should see the com.apple Safari.savedState folder.

Right click on it and choose “Move to Trash”.
Close Finder window.
Restart and relaunch Safari.
Test.