Thank you for the reply. I am using Windows 11, your reply might work in Windows 10.
Could not stop the service. It says there is no service running with that name.
PS C:\Users\ravin> Stop-Service -Name SecurityHealthService -Force
Stop-Service : Service 'Windows Security Service (SecurityHealthService)' cannot be stopped due to the following
error: Cannot open SecurityHealthService service on computer '.'.
Also could not open, gpedit.msc as it is only for Windows 10. I have disabled defender from Settings->Privacy & Security page on my laptop, as mentioned in my description above. Even after disabling virus protection and defender, still facing the issue.