You can put "\\" in the URL to split it into multiple lines.
E.g.
\href{https://your_big_url_split_into_lines}{https://your_big_url\\_split_into_lines}
In the PDF file, https://your_big_url will on one line and split_into_lines will be on the next line.