Perspective View config is undefined

I'm facing a weird behavior in the designer, when I copied a view and pasted it in the same folder, I got this blank white screen in both the original and the copy views, then when I try to close the view, I get this error in the screenshots.

It started happening when I tried to copy a json into a view, but it was in a totally different gateway in a totally different docker container. Now, it's happening in the other gateway in the other container somehow!!
PS: The views both original and copy are working fine when I embed them in other views or open them in a perspective session.

Any ideas?
Thanks