This error is caused due to unknown reasons. However, when checked manually, there is nothing wrong with both the firewall software and they are enabled normally.
Windows Firewall & third-party Firewall are turned off
If your Windows Firewall & third party Firewall like Comodo, McAfee, etc., are both turned off in Windows 10, then this is what you need to do to fix the issue: 1] Enable all the supporting Services Open the Windows Services Manager. Look for the service named Windows Defender Firewall. Make sure that its Startup type is set to be Automatic and that the service is Running. If not, click on the Start button. Also, make sure that the status of the following Services are as follows and that they are Running:
Xbox Live Networking Service – ManualBase Filtering Engine – Automatic
Now start the Firewall and see. This should have made that error go away. 2] Uninstall and reinstall the third-party firewall An error with the compatibility of the installation of Windows 10 and the third-party firewall may trigger false alarms like this. In this case, you have a limited set of methods to troubleshoot the error. The best thing that you can do is to uninstall the third-party firewall and get the latest version from its official website to install it like any other software on Windows 10. This will fix any installation incompatibility between the firewall and the operating system. All the best!