Please contact Unity if you need this issue resolved in Unity 2022.3 xLTS, and you are eligible to access such a version with an Unity Enterprise license.
Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Assets/Scenes/SampleScene“ Scene
3. Enter Play Mode
4. In the Scene view, observe the “Capsule“ GameObject
Expected result: The GameObject moves to the edge then along the edge forward and back
Actual result: The GameObject gets stuck and starts oscillating when trying to go back