A heading bug on the wrong heading, a turn towards high terrain, inadequate understanding of the AFCS and manually fighting the AFCS. Hang on, that's the G-SPAU accident in 2002. Whilst in that case Airbus changed the AFCS heading mode logic .
https://assets.publishing.service.go...pdf_023427.pdf