SSL Wordpress site on virtualmin Curl Error 28

SYSTEM INFORMATION
OS type and version Ubuntu 20.04.3 LTS
Virtualmin version 6.2.2

I have recently created a virtualserver on Virtualmin and used LetsEncrypt to create a certificate for my wordpress site. Now the website is on https. When checking the site health I have the following error:

Error: [] cURL error 28: Connection timed out after 10001 milliseconds

The loopback request to your site failed, this means features relying on them are not currently working as expected.
Error encountered: (0) cURL error 28: Connection timed out after 10000 milliseconds

This results in toolset not working correctly. I have disabled all the plugins and changed to the default theme but the issue persists.

I am suspecting it is something to do with my htaccess file. Can you kindly verify?

# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Your Virtualmin version is WAY out of date. The current version is 7.1-1.