ESP32 stops working for no apparent reason in field

The ground connection is via pin 5 which has a sufficient width for low impedance with ground plane.

What datasheet are you reading? Pin 5 is the on/off pin, pin 3 is ground.