To repair a disk:

Restart the computer while holding down Command-R until the macOS Utilities pane appears.

In the macOS Utilities window, select Disk Utility, and click the Continue button.

In the left column, select your startup disk.

In the First Aid tab located at right, click the Repair Disk button and wait.

Then restart normally.