Parse Error: referenced non-existent resource

I get this error

E 0:00:00:0497   _parse_ext_resource: res://Scenes/Projectiles/mc_lk_projectile.tscn:12 - Parse Error: [ext_resource] referenced non-existent resource at: res://Scripts/projectile_controller.gd
  <C++ Source>   scene/resources/resource_format_text.cpp:159 @ _parse_ext_resource()

This happens when I preload more than 1 scene that uses the same script file.
I specifically have this:

const projectiles := {
	test = preload("res://Scenes/Projectiles/test_projectile.tscn"),
	mc_lk = preload("res://Scenes/Projectiles/mc_lk_projectile.tscn"),
}

where both test_projectile and mc_lk_projectile have a main node with the projectile_controller.gd script attached to them. If I remove one of the 2 preloads everything works normally. Otherwise the error appears on the second scene that is preloaded.

I changed from preload to load and it works now. I would like to use preload, but this seems way too broken and I have no idea what causes the issue. I’ve tried making a minimal project to reproduce the issue, but I’m unable to do so.