One day of repairing should suffice for a library of your size.
Just wanna ask, I am currently doing Photo backup to my iCloud (but not photo sharing), if I have selected the "Optimize Storage" on my iphone, can the old pic (i.e. the original one that have been uploaded to the iCloud) sync with the Photo library in its original file size instead of the downsized version stored from the iPhone for preview only
iCloud Photo Library is storing all photos in the full resolution in iCloud, exactly the original files you uploaded to iCloud. From there the photos will sync to your devices and it will depend on your preferences on each device, if the photos will download to the device optimized or as the full sized original.
If all photos are currently in iCloud, also the most recently imported photos, you could simply delete your current photos library and create a new empty library. Enable this library as your iCloud Photo Library and wait for the photos to download back from iCloud. This should recreate all albums, metadata, and edits. The only things that will be missing, will be your projects. If you have projects that you need to save, you will have to restore the library from a backup, if the repair does not succeed.