Sure that can happen, some ESP32 pins 'glitch' when going to sleep.
You need to choose the GPIO pin connected to the LoRa NRESET pin carefully.
Or just omit the connection to the NRESET pin, the SX127X has an internal pull up and will usually work quite well without an active NRESET pin.