Replicator composer crashes on 2nd execution


I am trying to generate synthetic data using the latest version of Omniverse Code (2022.2.0). When I execute the replicator script for the first time, everything seems to work fine and data is also generated with all the configuration.

However, when I make changes in the script and try to run it again, it crashes and I have restart code again which is really bothersome when you are making frequent changes in script editor. I am attaching the snapshot of the error I am getting as I wasn’t able to copy the logs from the console for reference.

Please let me know how to solve this issue.
P.S. I already tried re-installing Omniverse Code and there are no previous version present in the system.