Swartz had competent legal representation from the jump. His counsel at the time of his suicide wrote in a postmortem on the case that he believed Swartz stood little chance of any custodial sentence, even were he to be convicted. It's not hard to see why: the sentencing guidelines for first-time offenders of non-remunerative CFAA offenses aren't very demanding.
Swartz was likely to be ruined by the cost of defending a complex federal charge, faced the prospect of potentially spending months in federal prison, and an overall likelihood of the whole incident concluding with a felony conviction on his record, which may have been problematic for his future endeavors. He was oppressed by his prosecution in a variety of ways. It's unnecessary to manufacture new ways.
Swartz was, if he rejected the plea bargain that would have given him a few months at most and went to trial and lost on all charges, looking at around 7 years at the extreme outside, tops, not 30. If you would like the detail on why this is so, take a look at any of the dozens of prior discussion of the Swartz case here, since this has been explained in great detail in nearly every one of them.