Check the rear gate lock actuator.
Is the rear gate lock actuator normal?
Check the connection status of the harness and connector that may have a temporary poor contact.
Replace the rear gate latch and actuator assembly.