Retirement tax questions

Payment of student loans, which is a personal loan, is not an exception to the early withdrawal penalty.

See this IRS tax topic for exceptions to the penalty for plans other than an IRA - https://www.irs.gov/taxtopics/tc558