The camera does not turn off automatically.
When an AC adaptor (sold separately) is used to charge the camera or a Wi-Fi connection is made between the camera and the Live-View Remote, the camera does not turn off automatically even if Auto Power Off is available.
This is normal operation and not a malfunction.