Domain redirection via GUI causes apache2 failed to restart after 5+ minutes

So, under the web ui, when I select Redirect visitors to a custom domain or web address 301 or even 302 apache2 fails to restart after 5+ minutes of trying. This does not happen if I am using the .htaccess or apache domain config file (/home/user/domain/conf/web/)

I have email setup, to receive any such issues, which gives me this:

panel.domain: : apache2 restart failed
[Fri Mar 07 14:52:59.982586 2025] [core:error] [pid 117041:tid 117041] (EAI 3)Temporary failure in name resolution: AH00547: Could not resolve host name **git.domain** -- ignoring!
[Fri Mar 07 14:18:07.968882 2025] [core:error] [pid 103805:tid 103805] (EAI 2)Name or service not known: AH00547: Could not resolve host name https -- ignoring!
[Fri Mar 07 14:18:07.986833 2025] [core:error] [pid 103805:tid 103805] (EAI 2)Name or service not known: AH00547: Could not resolve host name https -- ignoring!
Syntax OK

Although apache2 seems to have restarted, but to avoid any issues, I manually reboot it again, which causes no issues and happens in 30 or so seconds.

This only happens over UI and not otherwise if done manually over CLI/SFTP.

Apache2 logs also show only the above error, but as I mentioned, restart does happen, only that the UI buffers for 5+ minutes and goes out with the error of apache2 failure.

FYI, I keep getting one error over and over in every domain log:
Something like this:

[Sun Mar 09 01:44:57.673434 2025] [proxy_fcgi:error] [pid 27831:tid 27870] [client 194.26.192.169:0] AH01071: Got error 'Primary script unknown'

The client ips are not static, but this error message comes for every domain, and numerous times.