Optical flow reject position control

Hello,
I am trying to use the flow breakboard https://docs.px4.io/master/en/sensor/pmw3901.htmland teraranger one (https://www.terabee.com/connection-to-pixhawk-autopilots-teraranger-one/) to do indoor flight control. I am running px4 1.9.2 on a pixhawk 4. I followed the tutorial on PX4 to set:
EKF2_AID_MASK = 2
EKF2_HGT_MODE = range sensor
EKF2_OF_QMIN = 0
EKF2_RNG_AID = enabled

I can see that both sensors are working in MAVlink inpector. But it continues to reject the position control. I have checked the available posts here. Seems people are haveing the same issue with me but without a working solution. Could you anyone guide me how to solve this? Thanks!

I found that when I plug the battery in (powering the distance sensor), the pmw3901 will lose connection. I will try to figure out what’s wrong with the circuit.