I have some sympathy for Bonds and I think more baseball fans should, too. By all accounts I've seen, he was clean until the very end of the 90s.
1998 broke him. He was the best player in baseball and had been for some time. I suspect seeing McGwire and Sosa go off in 98 angered him to such an extent that he said "if you think steroids made them great players, you ain't seen **** yet" and literally became the greatest force in baseball history, even including Ohtani.
And I kinda get that, particularly with his family's history with the media, coverage, and just kinda crappiness (the media was pretty brutal to his dad from what I've read, it's no wonder Barry walks around with a chip on his shoulder).