Nextcloud LDAP Failover to Local Auth

LDAP authentication disables local authentication completely when LDAP server is not reachable even the admin user cannot login to Nextcloud portal throwing an internal server error blue screen.
Now it is not possible to switch back to local auth unless LDAP is removed from GUI.
How can we remove LDAP from backend?