If really all your Photos are in iCloud Photos right now (check it at www.icloud.com) , you could temporarily move your Photos Library to an external volume to free storage. But do not delete any items using the Photos.app. Just move your complete Photos Library from the Pictures folder to an external storage. This will not delete the photos from iCloud, just save storage on your system volume.
Move the library back to the Pictures folder, once you have updated the system, before you start Photos again.
Alternately, keep the copy as an additional backup and create a new, empty library in your Pictures folder ( Create additional libraries). Make the new library your system photos library in the Settings > Photos > General (System Photo Library overview), then enable iCloud Photos for it, also Optimize Mac Storage. The library will now be small and fully optimized right from the start.