This is a bug that appeared after the Cloudways team migrated my Magento 1 site.
In core_config_data table, the values:
had my domain name after a few https.
One https was intentional but a few others appeared with line breaks. Amazingly the site worked fine even after researching that there shouldn’t be line breaks in http headers (where the base url in sent).
I removed them and no side effects yet but would like to know how they came to be.