Crackling sound here too on a raspberry 3B+.
audio_pwm_mode=2 didn't fix.
Reducing audio level in kodi by 2 steps make it disappear but a better fix is welcome
Edit : still slight clipping distorsion with 2 steps reduction. 3 steps is safer with loud tracks
audio clipping distortion on i2s output is fixed with this firmware