Visual odometry issue

I was trying to fly through a pipe (1.5 m in diameter) with an Anafi AI, both in simulation and on a real model.
But the drone crashes into the edge of the pipe when it is in hover mode.
However, in simulation, when I add a texture to the pipe (such as a concrete texture), there is no problem.
I suspect that some visual odometry is being used to stabilise the drone.
Is that correct?
And is there a way to disable it and use only the inertial measurement unit when the drone is in low-texture environments?
Thank you in advance for your reply.

I tried it in simulation with the Anafi 4K and I don’t have this kind of problem. I tried flying the drone with different types of controls (from Olympe with piloting (roll, pitch, yaw, throttle, piloting_time), AirSDK with arsdk_cmd_enc_Ardrone3_Piloting_PCMD, and with qdronectrl) and the problem persists: inside the pipe, the drone heads straight for the edge and crashes. Is there a setting that needs to be disabled that is supposed to stabilise the drone with the image (perhaps a setting that I haven’t found when searching through the documentation)?

Answer: Just never use the hovering state.
Always send a moving command and if you want a stabilization, move to one direction and on the opposite very quickly. It drift a bit, but much less than in the hovering state.