Hello gray292,
This page here can help provide info on external display support on the MacBook Air (M2, 2022): MacBook Air (M2, 2022) - Technical Specifications
On there it'll help to note that it supports the following:
•One external display with up to 6K resolution at 60Hz
Thunderbolt 3 digital video output
•Native DisplayPort output over USB‑C
•VGA, HDMI, DVI, and Thunderbolt 2 output supported using adapters (sold separately)
If you're trying to use multiple displays, try connecting one external display to the Mac using a compatible adapter or output.
Cheers.