Suppression of geometric frustration by magnetoelastic coupling in AuCrS2