If I set the SSL encryption mode to ‘Flexible’, I get ‘ERR_TOO_MANY_REDIRECTS’ error on the main domain ‘enerlly.com’ but the subdomains are accessible ‘tata.enerlly.com’
If I set the SSL encryption mode to ‘Full’ or ‘Full-Strict’, the main domain works well but I get ‘Error 522’ on subdomains.
Full (strict) is the best choice, flexible is not secure and can cause issues such as the redirect error you experienced.
This gets the main domain working, you can then look into the 522 on the subdomains:
A 522 error typically happens when Cloudflare requests to the origin (your webserver) get blocked. Review the suggestions in this Community Tip for troubleshooting ideas.