TypeError: cannot pickle '_thread.RLock' object

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 99, in application
    init_request(request)
  File "apps/frappe/frappe/app.py", line 195, in init_request
    frappe.local.http_request = HTTPRequest()
                                ^^^^^^^^^^^^^
  File "apps/frappe/frappe/auth.py", line 43, in __init__
    self.set_session()
  File "apps/frappe/frappe/auth.py", line 77, in set_session
    frappe.local.login_manager = LoginManager()
                                 ^^^^^^^^^^^^^^
  File "apps/frappe/frappe/auth.py", line 119, in __init__
    self.make_session(resume=True)
  File "apps/frappe/frappe/auth.py", line 205, in make_session
    frappe.local.session_obj = Session(
                               ^^^^^^^^
  File "apps/frappe/frappe/sessions.py", line 220, in __init__
    self.resume()
  File "apps/frappe/frappe/sessions.py", line 296, in resume
    self.validate_user()
  File "apps/frappe/frappe/sessions.py", line 228, in validate_user
    if not frappe.get_cached_value("User", self.user, "enabled"):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/__init__.py", line 1274, in get_cached_value
    doc = get_cached_doc(doctype, name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/__init__.py", line 1217, in get_cached_doc
    doc = get_doc(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/__init__.py", line 1343, in get_doc
    doc = frappe.model.document.get_doc(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 83, in get_doc
    controller = get_controller(doctype)
                 ^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/base_document.py", line 70, in get_controller
    site_controllers[doctype] = import_controller(doctype)
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/base_document.py", line 88, in import_controller
    class_overrides = frappe.get_hooks("override_doctype_class")
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/__init__.py", line 1653, in get_hooks
    hooks = _dict(cache.get_value("app_hooks", _load_app_hooks))
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/utils/redis_wrapper.py", line 101, in get_value
    self.set_value(original_key, val, user=user)
  File "apps/frappe/frappe/utils/redis_wrapper.py", line 69, in set_value
    self.set(key, pickle.dumps(val))
                  ^^^^^^^^^^^^^^^^^
TypeError: cannot pickle '_thread.RLock' object

Getting thie error in Frappe selfhost in k8s

site_config.json

{
 "db_name": "lowcode",
 "db_password": "password",
 "db_type": "postgres",
 "encryption_key": "encryption-key"
}

common_site_config.json

common_site_config.json 
{
 "db_host": "host-url",
 "db_name": "frappe",
 "db_password": "vpassE.",
 "db_port": 5432,
 "db_type": "postgres",
 "default_site": "lowcode-uat",
 "redis_cache": "redis://redis-cache-service:6379",
 "redis_queue": "redis://redis-queue-service:6379",
 "redis_socketio": "redis://redis-queue-service:6379",
 "root_login": "postgres",
 "root_password": "admin",
 "server_script_enabled": 1,
 "socketio_port": 9000
}

Check redis pod logs if it has any issue.

Try resetting redis cache state. FLUSH ALL
Or try rollout redis cache sts.