401k Loan

Hello,

I'm overly stressed about my current financial situation. As I have a 22k personal loan and 20k in car loan. This does not include my credit card debts even though they are 0% now and I plan to pay them off before the end of the promo. Now I would like to take a loan against my 401k account to payoff my car loan and maybe sell it back to get a much cheaper car to be out of debt. I'm 33 Y/O and would pay off the 401k loa  in 2 years. Please advise if that is good idea financially.

Thank yoy