This is a bug in Godot 4 Beta 17. Once Beta 18 is out I will upload a fix. (the game runs on Vulkan btw)
I pushed a fix now!