You can try “ORing” the flags
System.sleep(SLEEP_MODE_DEEP, 300, SLEEP_DISABLE_WKP_PIN | SLEEP_NETWORK_STANDBY);