A corrupt disk could lead to unexpected behavior. If that corrupt disk is your default drive, the one with your operating system installed, the problem gets progressively worse.
Fortunately, Apple makes it easy to diagnose and (often) repair a disk in macOS with its built-in Disk Utility tool. Here you can find problems that could occur from formatting, directory structure, or any number of other common problems.
If the disk needs attention, the process could take a while using First Aid, Apple’s repair tool. Make sure you have plenty of time before you start, and a fresh backup wouldn’t hurt either.
1) Click to open the Launchpad on the Dock.
2) Select Disk Utility from the Launchpad.
3) With the hard disk selected, click First Aid.
4) On the pop-up that displays a warning message, click Continue.
5) Read the report and click Done when the process is complete.