WordPress replaces “https://” with “//” for Site & WordPress-URL

WordPress doesn’t do this on its own. It must be a plugin or a theme. The first step in trying to diagnose this would be to turn off all plugins and switch to a default theme, then start turning plugins back on, one by one, till you find the culprit. If none of your plugins are to blame, then it is probably the theme you were using.