UE5 PaperZd character fall off

Hello I’m using paperzd to make a 2d side-scolling game in Unreal Engine 5, When my player and the enemy collide with each other, the player always gets squeezed elsewhere. I used constrain to plane and changed the value of the y-axis to 1 in normal, but it has no effect, does anyone know any other way to solve the problem?