Which Windows Defender Firewall profile causes the Windows Firewall rule warning?
It is the Public Profile.
If this profile is disabled, the warning does not show.
So the next question; when should the Windows firewall be disabled?
Answer: Never; unless you have other another firewall solution. Rather add an appropriate access rule.