How do Hindus view humanity's history of war and violence and what is the solution?
It's always been a problem for other people, not for Hindus themselves. I suppose in the old days certain Hindu kings did more warring amongst themselves. I'm not that familiar with those days, other than if books like the Tirukural had stuff on armies, there must have been some. Certainly Hindus needed to develop armies to stop the genocide from Islamic invasions. So it's been almost entirely for defense.
We see the solution in ahimsa, and in personal transformation of character. like I said before. Right now it's capitalism, and greed that are the biggest enemies. Wars are promoted by weapon makers as much as by politicians. In Hinduism the goal is individual, to break out of the cycle, and that can only happen through dedicated sadhana and finding peace inside. The vast majority of people in warmongering societies aren't at all peaceful inside themselves, so the natural result is disharmony.
Most of the historical wars were away from us, and we see it as a natural evolution of the soul, just as we see children bickering on the playground to be due to a lack of self-control, and a natural learning process. If this planet did destroy, souls would just migrate to another planet like this one, and take on new bodies there.