Mismatch between ATTITUDE data and DISTANCE SENSOR data

Hi there!
I am developing a program that receives data from a drone, through MAVLINK.
I need to ask for the ATTITUDE, the SPEED and the HEIGHT parameters.

However, if I ask for the tree types of data, the height gives me almost everytime big and random values (Figure below), and only very occasionaly the values are correct (smaller than 255 cm)

If I don’t ask for the attitude data, the height values are ok (although the data transfer is very slow).

It doesn’t matter if I ask for the speed data or not, so there must be a mismatch between the Attitude and the Distance Sensor messages.

Anyone can help me?