How to move my Photos library to internal drive to use iCloud Optimize space feature
Once your album shows as fully synced with iCloud, simply quit Photos, disconnect your external drive, run Photos, and tell it to create a new Photos Library on your internal drive. Photos will download all thumbnails and the high res versions of images you view regularly.