Sorry for responding again but I have confirmed that this bug only exists in the web version, which means whatever is causing it is from the web export in Godot 4 from the GitHub repo.