Gateway down by launching a perspective project

When I enable a particular project in the gateway, gateway is getting down.But when I enable the same project in another gateway there is no issue.
The below is the wrapper log coming when the gateway is down,related to this project.


{
      "name": "gateway-tags-eventscripts-3",
      "id": 1242,
      "state": "RUNNABLE",
      "daemon": true,
      "system": "Tags",
      "scope": "Gateway",
      "cpuUsage": 4.5222828429403434E-5,
      "lockedSynchronizers": [
        "java.util.concurrent.ThreadPoolExecutor$Worker@551fd777"
      ],
      "stacktrace": [
        "app//org.python.core.PyList.<init>(PyList.java:60)",
        "app//org.python.core.PyList.<init>(PyList.java:72)",
        "org.python.pycode._pyx3512365.nrule2$2(<module:spc>:34)",
        "org.python.pycode._pyx3512365.call_function(<module:spc>)",
        "app//org.python.core.PyTableCode.call(PyTableCode.java:173)",
        "app//org.python.core.PyBaseCode.call(PyBaseCode.java:150)",
        "app//org.python.core.PyFunction.__call__(PyFunction.java:426)",
        "org.python.pycode._pyx3512370.valueChanged$1(<tagevent:valueChanged>:299)",
        "org.python.pycode._pyx3512370.call_function(<tagevent:valueChanged>)",
        "app//org.python.core.PyTableCode.call(PyTableCode.java:173)",
        "app//org.python.core.PyBaseCode.call(PyBaseCode.java:306)",
        "app//org.python.core.PyFunction.function___call__(PyFunction.java:474)",
        "app//org.python.core.PyFunction.__call__(PyFunction.java:469)",
        "app//org.python.core.PyFunction.__call__(PyFunction.java:464)",
        "app//com.inductiveautomation.ignition.common.script.ScriptManager.runFunction(ScriptManager.java:847)",
        "app//com.inductiveautomation.ignition.common.script.ScriptManager.runFunction(ScriptManager.java:829)",
        "app//com.inductiveautomation.ignition.gateway.project.ProjectScriptLifecycle$TrackingProjectScriptManager.runFunction(ProjectScriptLifecycle.java:868)",
        "app//com.inductiveautomation.ignition.gateway.tags.scripting.TagScriptManagerImpl$FunctionInvokerImpl.run(TagScriptManagerImpl.java:550)",
        "app//com.inductiveautomation.ignition.gateway.tags.scripting.events.AbstractTagScript.invoke(AbstractTagScript.java:34)",
        "app//com.inductiveautomation.ignition.gateway.tags.scripting.TagScriptManagerImpl$Task.invoke(TagScriptManagerImpl.java:498)",
        "app//com.inductiveautomation.ignition.gateway.tags.scripting.TagScriptManagerImpl$TagScriptDispatcher.run(TagScriptManagerImpl.java:458)",
        "app//com.inductiveautomation.ignition.common.execution.impl.BasicExecutionEngine$ThrowableCatchingRunnable.run(BasicExecutionEngine.java:550)",
        "java.base@17.0.11/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)",
        "java.base@17.0.11/java.util.concurrent.FutureTask.run(Unknown Source)",
        "java.base@17.0.11/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)",
        "java.base@17.0.11/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)",
        "java.base@17.0.11/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)",
        "java.base@17.0.11/java.lang.Thread.run(Unknown Source)"
      ]

What should be done for this issue?

Can you provide the full thread dump?