Character sliding when looking straight down or up and jumping

When I look straight down or up the character starts sliding but I still have movement input and when I look upwards or downwards while sliding it stops here is a clip of it happening

fixed it I had the “use Controller Rotation Pitch” checked on accident