If you are unsure if there is enough space for your vehicle to safely pass under an upcoming bridge, you should:
Increase your speed.
Swerve as you pass under the bridge.
Drive on the shoulder.
If you are not confident that your vehicle will have enough room to safely pass under an overhead object, you should slow down and seek another route, if possible.