DynamicCriteriaReportForm - report id from the menu row cannot be found

I have done the customizatoin on the DynamicCriteriaReportForm.

When i run the screen in the developer mode then it is working fine. After I mapped the menu item and when I tried to open using the menu item then I get the following error message and the base form is opened by default.
Error message report id from the menu row cannot be found. report form cannot be launched.

I removed all the changes on the Customization then also the same error comes. (Only Customization exists but there is no code on that)

Can you please help us to resolve this error message?

Few more additional information regarding the error message
Above error comes when I run Customization from the Customer Maintenance screen.

But when I open the screen directly for first time it is opening without any issue. But 2nd time it is throwing an error.
Exception has been thrown by the target of an invocation
Script.initializeglobalvariables customscriptmanager csm
Object reference not set to an instance of an object

But when I clear the cache and open the screen again then it is not throwing any error.

Without Clear cache, always first time it is opening. From second time onward it is throwing an error