Your mac can of course run El Capitan, you are wrong on that count.
If it is a late 2009 iMac it can upgrade to macOS High Sierra.
You do not need to erase your mac in order to install another OS.
As you have found out it is difficult to reinstall an OS through Apples Recovery Servers.
The certificates for several of Apples OS's expired in October 2019, Apple have been very poor at getting these updated on their Recovery Servers with valid certificates. This may be the problem you are experiencing.
Try this workaround, we are going to set the time and date on your mac to a date previous to the expiry date of the certificates.
Connect your mac to your router via cable, not WiFi
Boot to your Recovery HD, click on Utilities in the menubar select Terminal.
Make sure WiFi is switched off, it can reset the date back to today.
Enter a new date, for example or just copy and paste
sudo date -u 011421002015
press Return
enter your password
press Return
If Terminal returns an error saying sudo : command not found, then try again without sudo.
Now try downloading the OS.
If this works then when the OS is installed and booted up you can Open System Preferences> Date & Time
and reset the time back to today.
======================================================================================
If the above method does not work then try this instead.
Do you have another mac or can you borrow one. This mac needs to be able to run Yosemite or El Capitan.
Here are the instructions for downloading and creating the Install app for Yosemite, the instructions for
El Capitan are the same so just replace any mention of Yosemite with El Capitan.
Both of these downloads have valid certificates so no need to alter the date.
Click on the links below to access the downloads for the two OS's.
How to upgrade to OS X Yosemite – Apple Support
How to upgrade to OS X El Capitan – Apple Support
Go to Section 4 and click on Download OS X Yosemite.
This downloads InstallMacOSX.dmg to your Downloads folder.
The next section can only be done on a mac that is capable of running Yosemite,
a mac that came preinstalled with an OS later than Yosemite 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 Yosemite
but converts the InstallMacOSX.pkg to the Install OS X Yosemite.app which
you will find in your Applications folder.
(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 Yosemite on, that is for later.)
reate a bootable USB installer disk using the Install OS X Yosemite.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
sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install\ OS\ X\ Yosemite.app
When you have created the bootable installer plug it directly into the mac.
Restart the mac while pressing and holding the option/ alt key.
In a couple of minutes you will see the Startup Manager, select the USB
and press Return.
The mac will now boot to the USB, you will see a Utilities panel similar
to the one you see when you boot to your Recovery HD.
Click on Install OS X and press Continue.
The installation process should start, follow the prompts.