Does anybody know why im able to crouch when i turn my camera quickly

For context I have a Sprint, during that sprint state i am not allowed to crouch unless im moving backward, backward left, or backward right.

The problem is when im sprinting directly left or right and i turn my camera quickly while spamming crouch there is a small window that during the turn it lets me crouch and obviously i dont want that