Convert from right-handed y-down coordinate frame to Unreal Engine 5's left-handed z-up coordinate frame

My problem is outlined here on stack overflow:

I believe my rotation matrix is correct, but I do not understand why I am not getting the correct positions vector or quaternion.

Thank you.