Fix issues with unrepresentable column numbers (PR c++/77949)