Hello dfsafa,
Depending on which specific M2 MacBook Pro you are using, the hardware technical specifications for your external monitors are as follows:
"MacBook Pro (2023) with M2 Pro chip
MacBook Pro (14-inch, 2023) and MacBook Pro (16-inch, 2023) models with the M2 Pro chip support up to two external displays simultaneously, based on the resolution (up to 8K) and refresh rate (up to 240Hz) of each external display.
One external display
Supports one display in any one of these configurations:
- One display up to 6K at 60Hz over Thunderbolt
- One display up to 8K at 60Hz (or 4K at 240Hz) over HDMI
Two external displays
Supports two displays in any one of these configurations:
- Two displays up to 6K at 60Hz over Thunderbolt
- One display up to 6K at 60Hz over Thunderbolt, and one display up to 4K at 144Hz over HDMI
MacBook Pro (2023) models with M2 Max chip
MacBook Pro (14-inch, 2023) and MacBook Pro (16-inch, 2023) models with the M2 Max chip support up to four external displays simultaneously, based on the resolution (up to 8K) and refresh rate (up to 240Hz) of each external display.
One external display
Supports one external display in any one of these configurations:
- One display up to 6K at 60Hz over Thunderbolt
- One display up to 8K at 60Hz (or 4K at 240Hz) over HDMI
Two external displays
Supports two external displays in any one of these configurations:
- Two displays up to 6K at 60Hz over Thunderbolt
- One display up to 6K at 60Hz over Thunderbolt, and one display up to 8K at 60Hz (or 4K at 240Hz) over HDMI
Three external displays
Supports three external displays in any one of these configurations:
- Three displays up to 6K at 60Hz over Thunderbolt
- Two displays up to 6K at 60Hz over Thunderbolt, and one display up to 8K at 60Hz (or 4K at 240Hz) over HDMI
Four external displays
Supports four external displays in this configuration:
- Three displays up to 6K at 60Hz over Thunderbolt, and one display up to 4K at 144Hz over HDMI."
This is explained here: How many displays can be connected to MacBook Pro - Apple Support. We hope this helps. Let us know if we can assist with anything else at all. Take care.