Try this one: GitHub - jremington/ISM330DHCX_fusion: Mahony fusion filter for 6DOF
Drift depends on accuracy of gyro calibration, and the offsets are temperature dependent, so yaw drift will depend rather strongly on temperature.
The accelerometer can correct drift only in pitch and roll.