I'm facing this issue in my wsl 2.0 Arch. After I update curl via pacman this error shows up.
pacman: symbol lookup error: /usr/lib/libcurl.so.4: undefined symbol: libssh2_session_set_read_timeout
Something similar was showing when try to use curl but i manage remove curl but error stayed.