Apple says to quit Photos if it is open. Press Option-Command and double-click Photos. In Repair Library window, click Repair to rebuild your photo library.