A rail worker has died after a bridge collapsed when it was hit by a "cherry picker" truck in New South Wales' Central West.