Error in Saving Leave Application

Hello, I am running ERPNext version-14, I got this error when i have changed the data to another company. The leave application is not saved whenever its status is ‘Open’. But with other status is okay.
Here is what i have whenever i try to save the leave application.

Traceback (most recent call last):
File “apps/frappe/frappe/utils/”, line 85, in render_template
return get_jenv().from_string(template).render(context)
File “env/lib/python3.10/site-packages/jinja2/”, line 1301, in render
File “env/lib/python3.10/site-packages/jinja2/”, line 936, in handle_exception
raise rewrite_traceback_stack(source=source)