TF mini s lidar causes abnormal behavior in a hexacopter

Hi everyone,
I have a hexacopter with pixhawk 2.4.8 flight controller. I made some flights without problems on guided mode using raspberry pi 4 via Mavlink. The problems started when I installed TF mini s lidar like rangefinder to avoid obstacules using Bendy Ruler.

In the logs, I saw that magnetic field is out of normal range, I verified that when I disconnected the TFmini S lidar sensor, the mission planner GPS error disappeared, then I reconnected the TFmini S sensor and the GPS error “GPS Glitch” appeared again.

For these reason I put aluminum tape on the GPS and Tfmini S sensor cables to avoid magnetic interference. Nevertheless, now the GPS Glitch message in Mission Planner appears less frequently and does so as soon as I turn on the drone, the drone performs the flight that I program but it continues to have abnormal behavior and the logs gives the same magnetic field error and GPS glitch error. I do not know if there is an additional problem in the log that I am not seeing
Attached photos of the drone:




And attached the log of my last flight:
2021-10-31 11-42-55.bin (980.4 KB)

the pi camera is really bad for gps interference, try shielding the ribbon cable or just turn it off for testing.

Thanks for answering, I already tried and the same problem continues, could you take a look at the log?