Problem with characterbody3d

Godot Version

4.2

Question

Using characterbody3d physics and move_and_slide to move the model, sometimes it get stuck in corners. Any way to avoid this?

in move_and_slide increase
max_slides
in godot 3

move_and_slide(linear_velocity, up_direction, stop_on_slope: bool = false, max_slides: int = 4)

go with something higher than 4

in godot 4

func _ready():
max_slides = 5