Increase in the yaw value received from the Pixhawk

Hello, I have a Pixhawk 2.4.8 and a Raspberry Pi 5. I am using the MAVLink protocol to communicate between them and retrieve sensor values from the Pixhawk to the Raspberry Pi. While retrieving the pitch, roll, and yaw values, I do not encounter any issues with the pitch and roll values, but the yaw value keeps increasing. I have also performed the calibrations. What can I do to resolve this issue?