The OP may want to review the post#16 where a line of the image reads "cpu_start: Single Core mode" and the ESP32 module being selected. I do not know which of the ESP32's in the list are the single core modules but selecting a dual core ESP32 to upload to with a single core model is reason for code upload failure.