Try to use esp-prog: "GDB connection rejected"

This: ESP32-Pico-V3 fails to upload/debug using esp-prog - #20 by ivankravets
was the solution for me as well.