Touchscreen not working in godot 4.4/4.5.1

Godot Version

4.4/4.5.1

Question

I was trying to test my iOS game on 4.4 or 4.5.1, and both are running perfectly fine, except for the fact that touchscreen is broken and the console keeps repeating the same error on every press:

Mouse is not supported by this display server. at: mouse_get_position
``` and not letting you press anything