Since this is still the top result for “ue5 fix diagonal input” I might propose another solution.
Now that Unreal is using the Enhanced Input system you can open your input asset and add a “Deadzone” modifier of type “Radial”.