Scene doesn't load in exported build, but loads fine from within Godot

Godot Version

4.2.1

Question

I’ve seen some old posts about this, but I am experiencing this now! Are there any known fixes for this issue where a scene loads just fine from within Godot, but not from the exported build?

I tried doing ‘EXPORT MODE > Export selected scenes (and dependencies)’ and then selecting everything, but the problem remained.

I’m loading scenes in this way:
get_tree().change_scene_to_file(“res://MENUS AND STORY/game_over_screen.tscn”)

I have multiple scenes in that folder and they run all load fine, except for one scene in particular, which runs fine in Godot, but no in the exported build.

Any suggestions?

Are there any errors when you run the scene from the console?

There are some yellow errors in the Debugger. They are all along the lines of:

The parameter “delta” is never used in the function “dying_state()”. If this is intended, prefix it with an underscore: “_delta”.
UNUSED_PARAMETER
player_with_simple_states.gd:255

I just don’t really understand why a scene would load in the editor and not in a build?