Enable simulate physics on capsule collider in first person character lead to unexpected rotation

It almost like the issue might be due to gimbal lock or an incorrect application of rotation to the capsule component, this glitching behaviour only happens when the capsule falls directly forward or backward