Hey Bipul, this is not a complete error stack or logs. It doesn't contain the information about what went wrong. So I'll suggest you to share the complete error logs, which contains the information about what went wrong. so I could take a look and understand what's not working for you.
I was able to find the cause of the issue. There is an event listener for 'message' in one of my js files which seems to be the cause.
window.addEventListener('message', function (event) { ... }, false);
This listener was modifying the current event data causing this issue.