Subgap modes in two-dimensional magnetic Josephson junctions