A danger of swerving to avoid a hazard while driving a large truck is that:

While swerving can sometimes be the safest way to handle a hazard on the roadway, doing so is not without risk. Top-heavy vehicles and tractors with multiple trailers may flip over in a swerve.
DMV Writen Test