My character won't stick to the wall when the fps drops

Godot Version

Godot 4.2.2

Question

func _physics_process(delta):
if wallSignal == -1 and canJump == false:
move_and_collide(Vector2(-5000, -300) * delta)

if wallSignal == 1 and canJump == false:
	move_and_collide(Vector2(5000, -300) * delta)

I have a rigidbody2d node. It has a simple code part that makes it stick to the wall. In 60 fps, there is nothing weird but even if I cap the fps just a bit lower than 60(like 59), it begins to slip. I worried that if the other parts of the code makes this issue so I deleted the whole code but this part. And it seems that the issue appears with the the code that I mentioned above. Also sorry for my bad English. What did I wrong?