@maxosmedia
Despite your rudeness, I'll continue...
As I'm not sitting with you and I can indeed read, I have no idea that 'tragic' [in your language] meant that it froze/crashed.
Reopen SketchUp. Open the Ruby Console and try it again.
Is anything shown in the Console as it freezes/crashes ?
Is the freeze/crash creating a Bugsplat message ?
Have you read the info on it ?
Could you give us the error report parts ?
Have you submitted the Bugsplat to SketchUp with contact details and an explanation [in concise English] ?
You'll never get any help with a problem unless you give the would-be helper some clues.
Other info that might help...
SketchUp Version [2023?]
How many Scenes does the model have ?
How big is the model ?
Are you working in the model or in a context edit ?
Does it occur on every model - e.g. even a simple one with say just 2 scene tabs ?
Are scenes named sensibly and show on top-tab row ?
What's your use intention of this too ?l - it is quite niche and somewhat old/limited - and much about Scenes can be achieved by using the native tools...
etc
There's lots you can tell us that might not seem too important to you, but it might be to us.