This TOI describes the MAC limit per VLAN feature which can be used to limit the number of locally learned MACs per VLAN.

L2 EOS 4.27.2F MAC Limit Per VLAN