Adding "Light" instance in scene results in a critical error

I’m not sure if an update happened while i was working on my project, I was editing it normally for a few hours. When i reopened the project in web, this error appeared.
I started deleting all Objects looking for the source of the error and i find out, Lights are causing this for some reason. I reopened the editor and everything worked normally, but when i added a Light instance on the scene the error happened again. I created a new Light, added texture, same happened

I created a fresh new project and tested this, and the error happened again.
So yep, for some reason adding a Light source is causing this error, at least on web.

I can reproduce the issue, we’re working on a fix.

We’ve just merged a fix and deployed it on the web.
Ensure you refresh the web editor, and clear the cache if needed to have the latest version.

Thank you!! I’m very grateful.