Spanning Tree Protocol (STP)
Note: The MX does not run STP in any capacity, and will not exchange BPDUs with other switches or participate in the root bridge election process.
If the MX received BPDUs on the LAN, these BPDUs will be re-forwarded within the broadcast domain that they were received on. If there are multiple switches connected to the LAN of the MX participating in an STP election, all BPDUs sent to the MX will be forwarded to other links with the same VLAN allowed, which can cause switches to see BPDUs from multiple other switches, causing ports to get into an unknown/unidentifiable state and impacting the root bridge election process.
Below is a diagram illustrating how the STP election process can be affected by this MX LAN forwarding behavior - when 3+ switches are connected in the same broadcast domain, each switch will receive BPDUs from 2 or more switches on their connected uplinks. In the case of switches 2 and 3, the uplink is both a root port and a designated port from the switches' perspectives, causing the ports to go into an unknown state. In practice, this can also result in rapid STP port status changes for uplinks on multiple switches.
There are a few things that can be done to prevent this from occurring:
Avoid connecting more than two switches in the same STP domain directly to the LAN of the MX
Isolate the MX in its own broadcast domain by implementing Layer 3 switching downstream
The STP Root Bridge doesn't generate TCNs to notify of topology changes, only the non-root switches do. This can cause longer failover and STP convergence times and should be considered when setting up the root bridge and/or redundant links in the environment.
Note: STP convergence times may vary depending on the size of the network.
https://documentation.meraki.com/MX/Networks_and_Routing/MX_Layer_2_Functionality
I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.
Please, if this post was useful, leave your kudos and mark it as solved.