Godot sometimes has issues like that. I suggest looking through this thread:
https://www.reddit.com/r/godot/s/PunPun41vP