BPM Studio exception

I am getting the following exception while refreshing the views. Studio/BPM menus are not available. How to resolve this?
2025-11-20 07:04:08.334 INFO 44288 — [ main] com.axelor.web.AppStartup : Ready to serve…
2025-11-20 07:05:45.309 ERROR 44288 — [nio-9080-exec-2]

c.axelor.script.CompositeScriptHelper : Script error: config.app?.isApp(‹ studio ›)
com.axelor.script.ScriptPolicyException: Class ‹ com.axelor.studio.app.service.AppServiceImpl$$EnhancerByGuice$$9959e2d › not allowed.
at com.axelor.script.ScriptPolicy.check(ScriptPolicy.java:120)
at com.axelor.script.GroovyScriptSupport$PolicyChecker.check(GroovyScriptSupport.java:96)
at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)

axelor core 8.0 with axelor studio 4.0 latest versions ( Above error happens)
axelor core 7 with studio 3.5 (works fine)