Have you tried all of the steps in the Apple Support article you arrived here from yet? If so, at what step did it fail?
When boot up stalls at the Apple Logo/Progress Bar, that typically indicates an issue with kernel extensions (kext items). Kernel extensions are mainly device drivers. They are stored in /System/Library/Extensions.
A few things you can try:
- Shut down your Mac.
- Remove all external devices, except the keyboard & mouse.
- Boot up your Mac in Safe Mode. Ref: How to use safe mode on your Mac - Apple Support
Also, it would help if you can provide the following additional information:
- Which exact iMac model do you have?
- What version of macOS was it running? What version are you trying to upgrade/update it to?
- Why did you need to use Recovery Mode? That is what was your Mac doing that would necessitate having to reload its operating system?
- Command+Option+R would attempt to start up your Mac in the Internet version of the Recovery Mode. Is there some reason you needed this mode vs. the standard Command+R (non-Internet) mode?