WASHINGTON—Treasury Secretary Jacob Lew on Wednesday expressed concern that “last-minute brinkmanship” in Congress would lead to a legislative “accident” in which lawmakers fail to raise the debt ceiling before a Nov. 3 deadline.

The tight timing is forcing Republican leaders in Congress to search for a way to prevent an unprecedented government default. The Treasury Department says it will be unable to pay the nation’s bills in just two weeks.