If the same software (built with the same Arduino version, same library versions, etc.) causes problems on a device, it will most likely be due to the hardware.
How did you determine that? Are there any error messages?
To make my ESP32-C3 mini connect to the WiFi network I had to reduce the TX Power by calling WiFi.setTxPower()
.
Did you try this?