Assuming you have Service Pack 1 (SP1) installed on your Windows 7 OS (if you aren't sure go to Control Panel | System & Security | System and look under the Windows edition), have you also applied all updates released prior to end of support for Windows 7 SP1 on 14-Jan-2020? Specifically, have you installed the KB4474419 update (released 10-Sep-2019) that adds SHA-2 code signing support for digital certificates?
If you aren't sure if KB4474419 is installed, go to Control Panel | Programs and Features | View Installed Updates and search for "KB4474419" (without the quotes). NOTE: When searching, enter the full KB number in the search box (i.e., "KB4474419" and not a partial string like "4474419".
I don't have a computer with a Win 7 SP1 OS but this is an example of what I see when I search for KB4018466 on my old Vista SP2 machine.
<div class="ipsQuote_contents ipsClearfix" data-gramm="false">
<p>
ps I read another user posted the same problem here on Friday 23 August.
</p>
</div>
If sfc /scannow doesn't find/fix the error then the usual next thing to try is the DISM command.
However be aware that the full range of DISM options that you will see discussed/advised online (such as in the link in that other ADVAPI32.dll thread last Friday) are not availble in Windows 7.
In particular the “Restorehealth” option is not available to Windows 7 so you need to use “Scanhealth” instead.
(It was back-engineered so that “scanhealth” in Windows 7 will also do an image restore if needed).
So for Windows 7 you would open an elevated Command Prompt (run as administrator) and type in: DISM /online /cleanup-image /scanhealth