I did a bit of research and the issue seems to be something along the lines of the AP failing to capture a heading or a track (just because of the aircraft design) combined with a bit high AoA. I could be wrong here though so take this with a little grain of salt.
The A321 is old and that’s why it’s having issues. Here’s the feature request for its rework.