While taming, ride until the third buck then jump off. This seems to be as long as you can ride without being bucked off and aggroed/stunned.

Also spike walls will reset taming so jump before you hit them if any are in the area.

More Andrewsarchus Taming & KO Tips