Reset Administrator

I think you disabled the setup module for “All User” which included the administrator.

Check if you can change it and also check if you can access the role permission page and give all rights to the administrator user.

It happens if you play with the role permission and it gets messed up. Now you have to follow the Users Role permission
and the roles permissions doctype access permissions.

Follow it one by one.