Hi,
As you mentioned above, we can use the group policy: Prevent ignoring certificate errors to disable the option to "Continue to hostname (unsafe)" for IE.
And we can use the policy: Disable Certificate Error Overrides in Microsoft Edge. But it only available on Windows 10 Pro, Enterprise, and Education editions.
On other editions, you can use the registry to do this:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Internet Settings
PreventCertErrorOverrides DWORD
delete = Enable
1 = Disable
For more details, you can refer to the following link:
https://www.tenforums.com/tutorials/114865-disable-certificate-error-overrides-microsoft-edge-windows-10-a.html
This response contains a third-party link. We provide this link for easy reference. Microsoft cannot guarantee the validity of any information and content in this link.
Best Regards,