Twist-tuned exchange and hysteresis in a bilayer van der Waals magnet