If your mac is working at the moment and you still want to install Mac OS X El Capitan
then do not bother with reinstalling from Apples Recovery Servers, the copy
they have there has an expired certificate which results in an error and not being able
to reinstall. There is a workaround where you reset the date and time in Terminal to
a date prior to the expiry of the certificate and the install should commence.
In your circumstances you should not need to use the Apple Recovery Servers.
You can download a copy of El Capitan with a valid certificate, create a bootable
USB flash drive installer and use that to install El Capitan.
Make a full backup of your mac.
Open your Safari browser and click on the link below,
How to get old versions of macOS – Apple Support
Go to Download OS and click on OS X El Capitan 10.11
this downloads InstallMacOSX.dmg to your Downloads folder.
The next section can only be done on a mac that is capable of running El Capitan.
This includes macs that have the potential to run El Capitan but have been upgraded to a newer OS.
A mac that came preinstalled with an OS later than El Capitan will refuse to do the next bit.
When downloaded open to InstallMacOSX.pkg, double-click on
that and an installation window will open, this does not install El Capitan
but converts the InstallMacOSX.pkg to the Install OS X El Capitan.app which
you will find in your Applications folder, it should be 6.2GBs in size.
(If the installation window asks which disk you want to install to, you must pick
the disk that you are booted to at the time. Not any internal or external disk that
you want to eventually install El Capitan on, that is for later.)
Create a bootable USB installer disk using the Install OS X El Capitan.app in the Applications
folder and the createinstallmedia command in the Terminal app.
Read the instructions here,
How to create a bootable installer for macOS – Apple Support
With the bootable USB installer plugged directly in to your mac, Restart while pressing
and holding down the option/ alt key.
In a minute or two you will see the Boot Manager, select the USB and press Return.
The mac will boot to the USB, once started to the USB you will see a Utilities window.
If you want to install El Capitan over what you have you select Install OS X and press Continue.
The installation process will start, follow the prompts.
This method should refresh your existing system and Apple apps like Photos.
Or you can choose to do a clean install where you erase the Disk and reinstall El Capitan.
If you want to do this you would select Disk Utility then press Continue.
Highlight the Disk called Apple HDD or similar and click on Erase.
Give the Disk a name.
Format: Mac OS X Extended (Journaled)
Scheme: GUID Partition Map
Click Erase.
When Done quit Disk Utility.
Select Install OS X and press Continue.
If you chose to do the clean install you would then restore only your personal data
from the backup you made earlier.
Do not restore any System or Library files this will put the old defective OS back on.
Do not restore any apps as this will put the defective Photos app back on.
Only restore items in your Users/<username> folder.