How to set GPS module XM37-1612 to standby

There is a caveat to that, if your using software serial for the GPS AND you also use a lot of Serial prints to the standard (hardware) serial port, then the hardware Serial prints can interfere or corrupt the software serial coming from the GPS, the appropriate solutions for this are;

  1. Wait for and directly monitor the GPS output for the appropriate reply with no use of Serial prints.
  2. Use an ss.flush(); command after sending the configuration command to the GPS.

More details here;

The SX12XX library link in that article contains example programs for a LoRa based GPS high altitude balloon tracker which has configuration examples (including standby modes) for both Ublox and Quectel\Mediatek GPSs.