My m4 macbook had a weird flashing external monitor issue. One that eventually led to my monitor appearing to break. But have no fear, it's a known problem since m1 times and not a priority to fix.