How to constrain movement component to one axis?

Hi everyone, I have been trying to set up a system where the character movement component can only move on one axis for specific conditions. In essence the game is a 2D platformer which typically is constrained to 2D movement (using SetPlaneConstraintAxisSetting), however; when the player comes to the edge of a platform they slide down it along the rounded curve of their capsule hit box. I would like them to remain on level with the platform while over an open gap and fall once they are fully no longer on the platform.

I have already tried setting gravity to 0 (which isn’t ideal as they enter the falling state and act like they’re mid air rather than still on a platform) and when I tried to assign a value to the custom enum in SetPlaneConstraintAxisSetting it didn’t keep my 0,1,0 values. It would just spit out decimal points.

Does anyone know of a way to cause a pawn to lock its position on two axis? I assume the answer is in my lack of understanding of the aforementioned function, but I would also be interested in other methods.