I’m glad safe mode allowed you to fix it
Just as an FYI, but saving a category with no specific group in the permissions should default it to a staff-only access/view one. If that isn’t the case, or if a plugin or theme component blocked that somehow, it would be good if you could share the details.