Just in case someone else stumbles into this answer, I’ll add that there is a much easier way to prevent this specific problem of preventing the clicking of an anchor tag in the block editor.
Enter CSS. =)
.editor-styles-wrapper .your-block-class a {
pointer-events: none;
}