That’s quite troubling and suggests that you might want to reinstall Safari, assuming you’ve already done all the usual checks (restart, check in another user account, etc). But that’s not an easy thing to do (since, as I understand things, Safari relies on a lot of WebKit frameworks that are shared throughout macOS) and may require a full macOS reinstall.