One problem related to headlights turn off while driving has been reported for the 1997 Dodge Ram 1500. The most recently reported issues are listed below.
Head lights go out when driving or sometimes flickers on/off when driving, traced wiring and noticed that wiring was burnt at pig tail connector which is the head light switch at the part called bezel. . . Never had any trouble with it until this year and couldn't understand why wire burnt, the plastic/bezel melted first rather than fuse tripping. This occurs when driving anywhere but it occurred first when I was headed to work at 3am in highway 74 which is mountainous and very curvy road. . . Extremely dangerous. I believe this is a defective part and is safety risk.