Emacs hangs after searching and jumping to visible link

What happened?

While viewing a markdown file, In order to access a particular hyperlink - I always use SPC + s + l (to Search and Jump to visible link). I am on macOs Sonoma using GNU Emacs 29.1. Emacs just hangs at this point and stops responding. Switching to a different app (for checking about the issue) and bringing emacs to front is also taking a few seconds.

I have to kill emacs forcefully and abandon the search to continue using it without issues. This might be a one-off issue occurring only to me due to some config mistake on my part. Any guidance will be very helpful.

What did you expect to happen?

The buffer immediately highlights all the available links and provides keybindings to open any one of them.

Steps to reproduce

  1. Open any markdown file
  2. Search and jump to any visible link (SPC + s + l)

System information

generated  Jan 10, 2024 20:18:07
system     MacOS 14.2.1 Darwin 23.2.0 arm64
emacs      29.1 29.1-mac-10.0 e173249a1 ~/.emacs.d/
doom       3.0.0-pre PROFILE=_@0 HEAD -> master, origin/master, origin/HEAD
	   03d692f12 2023-12-08 15:11:45 -0500 ~/.doom.d/
shell      /bin/zsh
features   ACL GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE PDUMPER SQLITE3 THREADS
	   TOOLKIT_SCROLL_BARS TREE_SITTER XWIDGETS ZLIB
traits     batch server-running envvar-file
modules    :config use-package :completion company vertico :ui doom
	   doom-dashboard hl-todo modeline ophints (popup +defaults) (vc-gutter
	   +pretty) vi-tilde-fringe workspaces :editor (evil +everywhere)
	   file-templates fold (format +onsave) snippets :emacs dired electric
	   undo vc :term vterm :checkers syntax :tools docker editorconfig (eval
	   +overlay) gist lookup lsp magit make tmux :os macos :lang (cc +lsp)
	   data emacs-lisp ess json (java +lsp) javascript latex markdown org
	   python sh yaml :config (default +bindings +smartparens)
packages   (pig-mode :recipe (:host github :repo motus/pig-mode))