I might have understood it wrong, but if you are simply multiplying the x and z component of the velocity vector, then don't you just need the ratio between the target and entry velocity? So shouldn't your brake"force" be targetVelocity/entryVelocity?
I have found what my issue was. I ended up having a corrupted video card driver. Not sure why it didn't affect the stock installation of Minecraft but uninstalling it with DDU and using the latest stable release fixed my issue. Thank you guys for the help