Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
I have macOS 15.7. I fixed this by going into recovery mode and reinstalling macOS. Don't worry about your files; macOS will reinstall while preserving all your data. Then Safari will be version 18.6 again and will work amazingly smoothly.

 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.