It throws the error
After 0 kbd macro iterations: isearch-search: Keyboard macro terminated by a command ringing the bell and I have no idea why, nor can I find anything about it by searching. Any help?
According to Emacs Wiki, you can't use isearch during a keyboard macro.
The alternative mentioned in the emacs wiki link that Kevin Holmes gave works for me in emacs 25.2.1: while recording the macro, type Ctrl+s to start isearch, then type RET to switch to normal search (before typing your search query), then continue from there.
Admittedly, that message could be a little more clear. "terminated by a command ringing the bell" means a command went wrong during your macro (threw an error).
Since it happened during isearch, it probably just means the search failed during the keyboard macro. Redo the macro, being careful not to mistype anything during the search.