Discard the malformed line completely. Do not invent a url value for it and do not swap in another address; a webtunnel line only works exactly as issued, because the url, address and fingerprint all belong to one specific bridge. Success check: the bad line is no longer in your bridge list.

Request a fresh set of bridges. In Tor Browser, open Settings, then Tor, then Bridges, and use the option to request a bridge from torproject.org. In a browser, use the BridgeDB site (bridges.torproject.org) and ask for webtunnel bridges. Success check: you receive one or more new bridge lines.

Check the new line before using it. The url parameter must carry a real https address after it, and the bridge address must not start with 2001:db8. Success check: both checks pass; if a replacement line fails the same checks, request another set rather than editing it.

Paste the checked line into Tor Browser's bridge settings and connect. Success check: Tor Browser bootstraps to 100 percent and pages load.